Skip to content

Commit

Permalink
fix: Sell modal not preventing users from closing the modal when canc…
Browse files Browse the repository at this point in the history
…elling
  • Loading branch information
LautaroPetaccio committed Dec 29, 2024
1 parent c83a041 commit d180f25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Modals/SellModal/SellModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ const SellModal = ({
navigation: (
<ModalNavigation
title={t('sell_page.confirm.title')}
onClose={onClose}
onClose={isCancelling ? undefined : onClose}
onBack={isCancelling || shouldRemoveOffchainListing ? undefined : () => setStep(StepperValues.SELL_MODAL)}
/>
),
Expand Down

0 comments on commit d180f25

Please sign in to comment.