diff --git a/src/lib/components/calling/CallScreen.svelte b/src/lib/components/calling/CallScreen.svelte index 69b25f5d8..c8882c08e 100644 --- a/src/lib/components/calling/CallScreen.svelte +++ b/src/lib/components/calling/CallScreen.svelte @@ -214,10 +214,11 @@ }, TIME_TO_SHOW_CONNECTING) } } - if ($timeCallStarted) { + let timeCallStarted = $timeCallStarted + if (timeCallStarted !== null) { let timeCallStartedInterval = setInterval(() => { let now = new Date() - let timeDifference = now.getTime() - $timeCallStarted.getTime() + let timeDifference = now.getTime() - timeCallStarted.getTime() if (timeDifference > TIME_TO_SHOW_CONNECTING) { showAnimation = false noResponseVisible = true