Skip to content

Commit 2216f10

Browse files
committed
chore: move getTimeDifference params to obj
1 parent d172b52 commit 2216f10

File tree

1 file changed

+1
-1
lines changed
  • src/components/common/helpers

1 file changed

+1
-1
lines changed

src/components/common/helpers/time.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ export function handleUTCTime(ts: string, isRelativeTime = false) {
3939
}
4040

4141
export const getTimeElapsed = (start: Dayjs, now: Dayjs) => {
42-
return getTimeDifference(start?.toISOString(), now?.toISOString())
42+
return getTimeDifference({ startTime: start?.toISOString(), endTime: now?.toISOString()})
4343
}

0 commit comments

Comments
 (0)