Skip to content

Commit

Permalink
Fix typecheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 17, 2025
1 parent ca2ad33 commit b0aefcb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions packages/loot-core/src/client/app/appSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,24 @@ export const resetSync = createAppAsyncThunk(
) {
dispatch(
pushModal({
name: 'fix-encryption-key',
options: {
onSuccess: () => {
// TODO: There won't be a loading indicator for this
dispatch(resetSync());
modal: {
name: 'fix-encryption-key',
options: {
onSuccess: () => {
// TODO: There won't be a loading indicator for this
dispatch(resetSync());
},
},
},
}),
);
} else if (error.reason === 'encrypt-failure') {
dispatch(
pushModal({
name: 'create-encryption-key',
options: { recreate: true },
modal: {
name: 'create-encryption-key',
options: { recreate: true },
},
}),
);
}
Expand Down

0 comments on commit b0aefcb

Please sign in to comment.