diff --git a/Sources/BraveWallet/Crypto/NFT/NFTView.swift b/Sources/BraveWallet/Crypto/NFT/NFTView.swift index 7d8f46c5326..3b838ddd6ba 100644 --- a/Sources/BraveWallet/Crypto/NFT/NFTView.swift +++ b/Sources/BraveWallet/Crypto/NFT/NFTView.swift @@ -421,6 +421,15 @@ struct NFTView: View { } }) } + .onChange(of: keyringStore.isWalletLocked) { isLocked in + guard isLocked else { return } + if isShowingNFTDiscoveryAlert { + isShowingNFTDiscoveryAlert = false + } + if nftToBeRemoved != nil { + nftToBeRemoved = nil + } + } .onAppear { Task { isNFTDiscoveryEnabled = await nftStore.isNFTDiscoveryEnabled()