1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +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:
David Walsh 2023-01-13 09:33:01 -06:00 committed by GitHub
parent e70b6dc29e
commit 105762b0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {