+ {#if $requestedMicrophoneState && !$silentStore}
{:else}
diff --git a/front/src/Components/MyCamera.svelte b/front/src/Components/MyCamera.svelte
index 8f4b2094..d72a8eee 100644
--- a/front/src/Components/MyCamera.svelte
+++ b/front/src/Components/MyCamera.svelte
@@ -20,11 +20,6 @@
unsubscribeLocalStreamStore();
});
- let isSilent: boolean;
- const unsubscribeIsSilent = silentStore.subscribe((silent) => {
- isSilent = silent;
- });
-
let cameraContainer: HTMLDivElement;
onMount(() => {
@@ -40,16 +35,14 @@
}
});
});
-
- onDestroy(unsubscribeIsSilent);
- {#if isSilent}
+ {#if $silentStore}
{$LL.camera.my.silentZone()}
{:else if $localStreamStore.type === "success" && $localStreamStore.stream}