Skip to content

Commit

Permalink
fix: remove history on favorite toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Nov 23, 2023
1 parent f390f38 commit 190f06a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/sound/sound.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const createActions: StateCreator<
const sound = sounds[id];

set({
history: null,
sounds: {
...sounds,
[id]: { ...sound, isFavorite: !sound.isFavorite },
Expand Down

0 comments on commit 190f06a

Please sign in to comment.