fix: share chat modal

This commit is contained in:
Timothy J. Baek 2024-04-02 07:45:33 -07:00
parent 9975cb17a9
commit eca59f759d

View File

@ -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>