mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
REF: less remote fetches
This commit is contained in:
parent
08a8c77c03
commit
497178be12
@ -138,7 +138,7 @@ export default class ScanLndInvoice extends React.Component {
|
||||
return alert('Invoice expired');
|
||||
}
|
||||
|
||||
const currentUserInvoices = await fromWallet.getUserInvoices();
|
||||
const currentUserInvoices = fromWallet.user_invoices_raw; // not fetching invoices, as we assume they were loaded previously
|
||||
if (currentUserInvoices.some(invoice => invoice.payment_hash === decoded.payment_hash)) {
|
||||
this.setState({ isLoading: false });
|
||||
return alert(loc.lnd.sameWalletAsInvoiceError);
|
||||
|
Loading…
Reference in New Issue
Block a user