Skip to content

Commit 95544bc

Browse files
committed
fix(lightning): filter unnecessary error
1 parent ada9b65 commit 95544bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/lightning/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,10 @@ export const refreshLdk = async ({
800800
shouldPreemptivelyStopLdk: false,
801801
});
802802
if (setupResponse.isErr()) {
803+
if (setupResponse.error.message.includes('already_init')) {
804+
return ok('');
805+
}
806+
803807
showToast({
804808
type: 'error',
805809
title: i18n.t('wallet:ldk_start_error_title'),

0 commit comments

Comments
 (0)