Skip to content

Commit

Permalink
Use function for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 20, 2024
1 parent e674909 commit fc23e25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/src/components/player/dynamic/DynamicVideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ActivityIndicator from "@/components/indicators/activity-indicator";
import { VideoResolutionType } from "@/types/live";
import axios from "axios";
import { cn } from "@/lib/utils";
import { getUTCOffset } from "@/utils/dateUtil";
import { getTimestampOffset, getUTCOffset } from "@/utils/dateUtil";

Check failure on line 15 in web/src/components/player/dynamic/DynamicVideoPlayer.tsx

View workflow job for this annotation

GitHub Actions / Web - Lint

'getUTCOffset' is defined but never used. Allowed unused vars must match /^_/u

/**
* Dynamically switches between video playback and scrubbing preview player.
Expand Down Expand Up @@ -149,8 +149,7 @@ export default function DynamicVideoPlayer({
// state of playback player

const recordingParams = useMemo(() => {
const timeRangeOffset =
(getUTCOffset(new Date(timeRange.before * 1000)) % 60) * 60;
const timeRangeOffset = getTimestampOffset(timeRange.before);

return {
before: timeRange.before + timeRangeOffset,
Expand Down

0 comments on commit fc23e25

Please sign in to comment.