From 3f9c982ed12386a333044b253f299be51683dd89 Mon Sep 17 00:00:00 2001 From: jollygrin Date: Tue, 26 Mar 2024 22:55:13 +0100 Subject: [PATCH] reload automatically to get the starred deck --- lib/hooks/useUnmatchedDeck.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hooks/useUnmatchedDeck.ts b/lib/hooks/useUnmatchedDeck.ts index 5556b54..85d905a 100644 --- a/lib/hooks/useUnmatchedDeck.ts +++ b/lib/hooks/useUnmatchedDeck.ts @@ -72,6 +72,7 @@ export const useLoadRouterDeck = () => { if (localDeck?.version_id !== deckId) { toast.success("Refresh the page if you do not see your new deck"); + reload() } // star the local deck if (localDeck) setStar(localDeck.id);