mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Fix 16842 - Update NFT error message so that it's caught properly and displayed (#17165)
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
This commit is contained in:
parent
e70b6dc29e
commit
105762b0ed
@ -1826,8 +1826,8 @@ export function addNftVerifyOwnership(
|
||||
]);
|
||||
} catch (error) {
|
||||
if (
|
||||
error.message.includes('This collectible is not owned by the user') ||
|
||||
error.message.includes('Unable to verify ownership.')
|
||||
error.message.includes('This NFT is not owned by the user') ||
|
||||
error.message.includes('Unable to verify ownership')
|
||||
) {
|
||||
throw error;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user