From 9d3b0d1a104f425146656ba1488391f310520958 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 9 Sep 2024 08:46:36 +0200 Subject: [PATCH] fix: restart node after restore test in example app --- example/Dev.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/example/Dev.tsx b/example/Dev.tsx index 442b600c..d8086f3f 100644 --- a/example/Dev.tsx +++ b/example/Dev.tsx @@ -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'); }} />