From 80627026cb1a1e0047ddcf1bdee0c90605089247 Mon Sep 17 00:00:00 2001 From: Ostap Piatkovskyi <44294945+ost-ptk@users.noreply.github.com> Date: Thu, 14 Nov 2024 20:02:19 +0200 Subject: [PATCH] fix: change condition for enabling the send NFT token button (#1070) * changed condition for enabling the send NFT token button * skip e2e test `should redirect to Ramp provider page` --- e2e-tests/popup/buy-cspr/buy-cspr.spec.ts | 2 +- src/apps/popup/pages/nft-details/content.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e-tests/popup/buy-cspr/buy-cspr.spec.ts b/e2e-tests/popup/buy-cspr/buy-cspr.spec.ts index 15ee207d..ea073682 100644 --- a/e2e-tests/popup/buy-cspr/buy-cspr.spec.ts +++ b/e2e-tests/popup/buy-cspr/buy-cspr.spec.ts @@ -39,7 +39,7 @@ popup.describe('Popup UI: buy cspr', () => { } ); - popup( + popup.skip( 'should redirect to Ramp provider page', async ({ popupPage, unlockVault, context }) => { await unlockVault(); diff --git a/src/apps/popup/pages/nft-details/content.tsx b/src/apps/popup/pages/nft-details/content.tsx index f24a017b..3253b1e0 100644 --- a/src/apps/popup/pages/nft-details/content.tsx +++ b/src/apps/popup/pages/nft-details/content.tsx @@ -154,7 +154,7 @@ export const NftDetailsContent = ({ ); if (extendedDeployInfo) { - if (extendedDeployInfo.status === Status.Executed) { + if (extendedDeployInfo.status !== Status.Pending) { dispatchToMainStore( accountTrackingIdOfSentNftTokensRemoved(nftToken?.tracking_id!) );