Skip to content

Commit

Permalink
chore(useTimeAgo): remove unnecessary now.value (#3068)
Browse files Browse the repository at this point in the history
  • Loading branch information
WORMSS committed May 6, 2023
1 parent 2c66ef5 commit 5a013bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useTimeAgo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function useTimeAgo<UnitNames extends string = UseTimeAgoUnitNamesDefault
} = options

const { now, ...controls } = useNow({ interval: updateInterval, controls: true })
const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now.value)))
const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now)))

if (exposeControls) {
return {
Expand Down

0 comments on commit 5a013bf

Please sign in to comment.