Skip to content

Commit

Permalink
fix: restart node after restore test in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonvdb committed Sep 9, 2024
1 parent 3767cc7 commit 9d3b0d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion example/Dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,15 @@ const Dev = (): ReactElement => {
return;
}

setMessage('Successfully restored wallet');
const setupResponse = await setupLdk();
if (setupResponse.isErr()) {
setMessage(setupResponse.error.message);
return;
}

setNodeStarted(true);

setMessage('Successfully restored and started wallet');
}}
/>
<Button
Expand Down

0 comments on commit 9d3b0d1

Please sign in to comment.