Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez committed Mar 17, 2020
1 parent 780c7fc commit af41535
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface DateRange {
endDateExpression: string;
startTimestamp: number;
endTimestamp: number;
timestampsLastUpdated: number;
timestampsLastUpdate: number;
}

interface VisiblePositions {
Expand Down Expand Up @@ -107,7 +107,7 @@ export const useLogPositionState: () => LogPositionStateParams & LogPositionCall
...DEFAULT_DATE_RANGE,
startTimestamp: datemathToEpochMillis(DEFAULT_DATE_RANGE.startDateExpression)!,
endTimestamp: datemathToEpochMillis(DEFAULT_DATE_RANGE.endDateExpression, 'up')!,
timestampsLastUpdated: Date.now(),
timestampsLastUpdate: Date.now(),
});

const { startKey, middleKey, endKey, pagesBeforeStart, pagesAfterEnd } = visiblePositions;
Expand Down Expand Up @@ -151,7 +151,7 @@ export const useLogPositionState: () => LogPositionStateParams & LogPositionCall
...newDateRange,
startTimestamp: nextStartTimestamp,
endTimestamp: nextEndTimestamp,
timestampsLastUpdated: Date.now(),
timestampsLastUpdate: Date.now(),
});
},
[setDateRange, dateRange, targetPosition]
Expand All @@ -168,7 +168,7 @@ export const useLogPositionState: () => LogPositionStateParams & LogPositionCall
if (pagesAfterEnd <= DESIRED_BUFFER_PAGES) {
setDateRange({
endTimestamp: datemathToEpochMillis(dateRange.endDateExpression, 'up')!,
timestampsLastUpdated: Date.now(),
timestampsLastUpdate: Date.now(),
});
}
}, [dateRange.endDateExpression, pagesAfterEnd, setDateRange]);
Expand Down

0 comments on commit af41535

Please sign in to comment.