Explorar o código

fix: share chat modal

Timothy J. Baek hai 1 ano
pai
achega
eca59f759d
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/lib/components/chat/ShareChatModal.svelte

+ 4 - 2
src/lib/components/chat/ShareChatModal.svelte

@@ -73,8 +73,10 @@
 	export let show = false;
 
 	onMount(async () => {
-		chat = await getChatById(localStorage.token, $chatId);
-		console.log(chat);
+		chatId.subscribe(async (value) => {
+			chat = await getChatById(localStorage.token, value);
+			console.log(chat);
+		});
 	});
 </script>