Skip to content

Commit

Permalink
fix: bug in avoid store reset
Browse files Browse the repository at this point in the history
  • Loading branch information
liana-p committed Feb 3, 2024
1 parent 3dc51c0 commit aaa7cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/narrat/src/stores/stores-management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function resetAllStores() {
if (isStoreWithConfig(data)) {
config = getConfig()[data.config];
}
if (store.reset && data.avoidReset === true) {
if (store.reset && !data.avoidReset) {
store.reset(config);
}
}
Expand Down

0 comments on commit aaa7cd1

Please sign in to comment.