Skip to content

Commit 293f52a

Browse files
committed
fix: Show Info notification for LNURL-withdraw success
1 parent 3927859 commit 293f52a

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

src/screens/Wallets/LNURLWithdraw/Confirm.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ const Confirm = ({ route }: LNURLWithdrawProps<'Confirm'>): ReactElement => {
4444
}
4545
dispatch(closeSheet('lnurlWithdraw'));
4646
showToast({
47-
type: 'success',
48-
title: t('lnurl_w_success_title'),
49-
description: t('lnurl_w_success_description'),
47+
type: 'info',
48+
title: t('other:lnurl_withdr_success_title'),
49+
description: t('other:lnurl_withdr_success_msg'),
5050
});
5151
};
5252

src/utils/i18n/locales/en/other.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
"string": "Withdraw Requested"
225225
},
226226
"lnurl_withdr_success_msg": {
227-
"string": "Your withdraw was successfully requested."
227+
"string": "Your withdraw was successfully requested. Waiting for payment."
228228
},
229229
"phone_settings": {
230230
"string": "Open Phone Settings"

src/utils/i18n/locales/en/wallet.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,6 @@
644644
"lnurl_w_button": {
645645
"string": "Withdraw"
646646
},
647-
"lnurl_w_success_title": {
648-
"string": "Success"
649-
},
650-
"lnurl_w_success_description": {
651-
"string": "Withdraw Requested Successful"
652-
},
653647
"lnurl_p_title": {
654648
"string": "Pay Bitcoin"
655649
},

src/utils/lnurl.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,6 @@ export const handleLnurlWithdraw = async ({
334334
});
335335
return err(jsonRes.reason);
336336
}
337-
338-
showToast({
339-
type: 'success',
340-
title: i18n.t('other:lnurl_withdr_success_title'),
341-
description: i18n.t('other:lnurl_withdr_success_msg'),
342-
});
343-
344337
return ok('');
345338
} catch (e) {
346339
console.log(e.message);

0 commit comments

Comments
 (0)