From 190f06aa78b1aff931348a65da864404b2d0f4d5 Mon Sep 17 00:00:00 2001 From: MAZE Date: Thu, 23 Nov 2023 17:13:05 +0330 Subject: [PATCH] fix: remove history on favorite toggle --- src/store/sound/sound.actions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/sound/sound.actions.ts b/src/store/sound/sound.actions.ts index 323f31d..709695a 100644 --- a/src/store/sound/sound.actions.ts +++ b/src/store/sound/sound.actions.ts @@ -83,6 +83,7 @@ export const createActions: StateCreator< const sound = sounds[id]; set({ + history: null, sounds: { ...sounds, [id]: { ...sound, isFavorite: !sound.isFavorite },