Skip to content

Commit

Permalink
fix: useCallSession duration usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian-mkd committed Oct 26, 2024
1 parent 2a6759b commit bb8a31c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ const formatTime = (timeInSeconds: number) => {
};

const Elapsed = () => {
const { useCallDuration } = useCallStateHooks();
const duration = useCallDuration();
const elapsed = formatTime(duration);
const { useCallSessionDuration } = useCallStateHooks();
const sessionDuration = useCallSessionDuration();
const elapsed = formatTime(sessionDuration);

return (
<div className="rd__header__elapsed">
Expand Down

0 comments on commit bb8a31c

Please sign in to comment.