mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Update App.js
This commit is contained in:
parent
c86bd12eb0
commit
5c437c138b
6
App.js
6
App.js
@ -51,7 +51,11 @@ export default class App extends React.Component {
|
||||
const isAddressFromStoredWallet = BlueApp.getWallets().some(wallet =>
|
||||
wallet.chain === Chain.ONCHAIN ? wallet.weOwnAddress(clipboard) : wallet.isInvoiceGeneratedByWallet(clipboard),
|
||||
);
|
||||
if (this.state.clipboardContent !== clipboard && (this.isBitcoinAddress(clipboard) || this.isLightningInvoice(clipboard) || this.isLnUrl(clipboard))) {
|
||||
if (
|
||||
!isAddressFromStoredWallet &&
|
||||
this.state.clipboardContent !== clipboard &&
|
||||
(this.isBitcoinAddress(clipboard) || this.isLightningInvoice(clipboard) || this.isLnUrl(clipboard))
|
||||
) {
|
||||
this.setState({ isClipboardContentModalVisible: true });
|
||||
}
|
||||
this.setState({ clipboardContent: clipboard });
|
||||
|
Loading…
Reference in New Issue
Block a user