diff --git a/example/src/App.tsx b/example/src/App.tsx index dfd08f0..f51244e 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -145,7 +145,9 @@ const App = (props: any) => { } function clearCharacter() { - updateCharacter({ }) + if (window.confirm("Are you sure?")) { + updateCharacter({ }) + } } function getDefaultRedirect(search: string | undefined) {