fix: user chat delete loophole

This commit is contained in:
Timothy J. Baek 2024-03-02 00:07:50 -08:00
parent a4c6a8d5a4
commit 74809e7330
3 changed files with 15 additions and 3 deletions

View file

@ -75,7 +75,9 @@
const deleteChats = async () => {
await goto('/');
await deleteAllChats(localStorage.token);
await deleteAllChats(localStorage.token).catch((error) => {
toast.error(error);
});
await chats.set(await getChatList(localStorage.token));
};