From d180f25cadcdd8b397fd73dbef8502d5dd8d3e2f Mon Sep 17 00:00:00 2001 From: LautaroPetaccio Date: Sun, 29 Dec 2024 13:57:25 -0300 Subject: [PATCH] fix: Sell modal not preventing users from closing the modal when cancelling --- webapp/src/components/Modals/SellModal/SellModal.container.ts | 2 +- webapp/src/components/Modals/SellModal/SellModal.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/Modals/SellModal/SellModal.container.ts b/webapp/src/components/Modals/SellModal/SellModal.container.ts index 10e971e768..ef5beb25ae 100644 --- a/webapp/src/components/Modals/SellModal/SellModal.container.ts +++ b/webapp/src/components/Modals/SellModal/SellModal.container.ts @@ -27,7 +27,7 @@ const mapState = (state: RootState): MapStateProps => { authorizations: getAuthorizations(state), isCreatingOrder: isLoadingType(getLoadingOrders(state), CREATE_ORDER_REQUEST), isAuthorizing: isLoadingType(getLoading(state), GRANT_TOKEN_REQUEST) || isLoadingType(getLoading(state), REVOKE_TOKEN_REQUEST), - isCancelling: isLoadingType(getLoading(state), CANCEL_ORDER_REQUEST), + isCancelling: isLoadingType(getLoadingOrders(state), CANCEL_ORDER_REQUEST), isOffchainPublicNFTOrdersEnabled: getIsOffchainPublicNFTOrdersEnabled(state) } } diff --git a/webapp/src/components/Modals/SellModal/SellModal.tsx b/webapp/src/components/Modals/SellModal/SellModal.tsx index e58e64c4e7..3a1d5da7fd 100644 --- a/webapp/src/components/Modals/SellModal/SellModal.tsx +++ b/webapp/src/components/Modals/SellModal/SellModal.tsx @@ -322,7 +322,7 @@ const SellModal = ({ navigation: ( setStep(StepperValues.SELL_MODAL)} /> ),