Skip to content

Commit a36fef2

Browse files
committed
fix(lightning): filter unnecessary error on startup
1 parent a3009ef commit a36fef2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/startup/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ export const startWalletServices = async ({
152152
if (setupResponse.isOk()) {
153153
keepLdkSynced({ selectedNetwork }).then();
154154
} else {
155+
if (setupResponse.error.message.includes('already_init')) {
156+
return ok('');
157+
}
158+
155159
showToast({
156160
type: 'error',
157161
title: i18n.t('wallet:ldk_start_error_title'),

0 commit comments

Comments
 (0)