Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 19729dc

Browse files
committed
Cleanup navigate to wait screen during lightning payment
1 parent fd064f4 commit 19729dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/action/payment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class PaymentAction {
111111

112112
async payLightning() {
113113
try {
114+
this._nav.goWait();
114115
const invoice = this._store.payment.address.replace(PREFIX_URI, '');
115116
const stream = this._grpc.sendStreamCommand('sendPayment');
116117
await new Promise((resolve, reject) => {
@@ -123,7 +124,6 @@ class PaymentAction {
123124
});
124125
stream.on('error', reject);
125126
stream.write(JSON.stringify({ payment_request: invoice }), 'utf8');
126-
this._nav.goWait();
127127
});
128128
this._nav.goPayLightningDone();
129129
} catch (err) {

0 commit comments

Comments
 (0)