Skip to content

Commit

Permalink
dev: trigger fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Sep 19, 2022
1 parent 1453ae4 commit 4e5207e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/components/Persist/Lock.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fatalErrorActions } from 'app/state/fatalerror'
import { persistActions } from 'app/state/persist'
import { selectIsPersisted } from 'app/state/persist/selectors'
import { Box, Button } from 'grommet'
Expand All @@ -17,6 +18,18 @@ export function Lock() {
<Button label="Lock profile" onClick={() => dispatch(persistActions.lockAsync())}></Button>

<Button label="Erase profile" onClick={() => dispatch(persistActions.eraseAsync())}></Button>
<Button
label="fatal error"
onClick={() =>
dispatch(
fatalErrorActions.setError({
message: 'Error message',
stack: 'Error stack',
sagaStack: 'sagaStack',
}),
)
}
></Button>
</Box>
)
}

0 comments on commit 4e5207e

Please sign in to comment.