Skip to content

Commit

Permalink
reload automatically to get the starred deck
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Mar 26, 2024
1 parent 55fc6df commit 3f9c982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/hooks/useUnmatchedDeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f9c982

Please sign in to comment.