Skip to content

Commit

Permalink
fix: Cancel page not disabling the cancel button when cancelling order
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Dec 29, 2024
1 parent d180f25 commit edcd3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/SellPage/SellModal/SellModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const SellModal = (props: Props) => {
{shouldRemoveListing ? (
<div className="cancel-order">
<ErrorBanner info={t('sell_page.cancel_order_warning')} />
<Button primary onClick={handleCancelTrade} loading={isLoadingCancelOrder}>
<Button primary onClick={handleCancelTrade} disabled={isLoadingCancelOrder} loading={isLoadingCancelOrder}>
{t('sell_page.cancel_order')}
</Button>
</div>
Expand Down Expand Up @@ -189,7 +189,7 @@ const SellModal = (props: Props) => {
/>
</div>
<div className="buttons">
<Button as="div" onClick={onGoBack}>
<Button as="div" disabled={isLoading} onClick={onGoBack}>
{t('global.cancel')}
</Button>
<ChainButton type="submit" primary disabled={isDisabled || isLoading} loading={isLoading} chainId={nft.chainId}>
Expand Down

0 comments on commit edcd3bc

Please sign in to comment.