Skip to content

Commit

Permalink
Let the "ResetDatabaseButton" reload the page to ensure application s…
Browse files Browse the repository at this point in the history
…tate reset.
  • Loading branch information
dfahlander committed Jul 15, 2023
1 parent a64ef87 commit 9e49a5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function ResetDatabaseButton() {
className="large-button"
onClick={async () => {
await db.delete();
await db.open();
location.reload(); // Reload the page to reset application state hard.
}}
>
<FontAwesomeIcon icon={faDatabase} /> Factory reset client
Expand Down

0 comments on commit 9e49a5b

Please sign in to comment.