Skip to content

Commit

Permalink
fix time function
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <[email protected]>
  • Loading branch information
crenshaw-dev committed Oct 15, 2024
1 parent 74686e6 commit 937923a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ApplicationHydrateOperationState: React.FunctionComponent<Props> =
{time => (
<Duration
durationMs={
((hydrateOperationState.finishedAt && moment(hydrateOperationState.finishedAt)) || time).diff(moment(hydrateOperationState.startedAt)) / 1000
((hydrateOperationState.finishedAt && moment(hydrateOperationState.finishedAt)) || moment(time)).diff(moment(hydrateOperationState.startedAt)) / 1000
}
/>
)}
Expand Down

0 comments on commit 937923a

Please sign in to comment.