Commit bfd066cc authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: share chat modal

parent 000bea84
...@@ -54,12 +54,16 @@ ...@@ -54,12 +54,16 @@
export let show = false; export let show = false;
onMount(async () => { $: if (show) {
chatId.subscribe(async (value) => { (async () => {
chat = await getChatById(localStorage.token, value); if ($chatId) {
chat = await getChatById(localStorage.token, $chatId);
} else {
chat = null;
console.log(chat); console.log(chat);
}); }
}); })();
}
</script> </script>
<Modal bind:show size="sm"> <Modal bind:show size="sm">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment