Skip to content

Commit b5dd97a

Browse files
Merge 61b9078 into 608a000
2 parents 608a000 + 61b9078 commit b5dd97a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/stores/index.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import onboardingReducer from 'src/stores/onboarding-slice';
1818
import providerConstantsReducer, {
1919
setProviderConstants,
2020
} from 'src/stores/provider-constants-slice';
21-
import { reducer as snapshotReducer, updateSnapshotLocally } from 'src/stores/snapshot-slice';
21+
import {
22+
reducer as snapshotReducer,
23+
updateSnapshotLocally,
24+
snapshotActions,
25+
} from 'src/stores/snapshot-slice';
2226
import { syncReducer } from 'src/stores/sync';
2327
import {
2428
connectedSitesReducer,
@@ -77,7 +81,7 @@ listenerMiddleware.startListening( {
7781

7882
// Save snapshots to user config
7983
listenerMiddleware.startListening( {
80-
matcher: isAnyOf( updateSnapshotLocally ),
84+
matcher: isAnyOf( updateSnapshotLocally, snapshotActions.deleteSnapshotLocally ),
8185
async effect( action, listenerApi ) {
8286
const state = listenerApi.getState();
8387
await getIpcApi().saveSnapshotsToStorage( state.snapshot.snapshots );

0 commit comments

Comments
 (0)