Skip to content

Commit

Permalink
feat: fix unfillable order status
Browse files Browse the repository at this point in the history
  • Loading branch information
fairlighteth authored and alfetopito committed Jan 16, 2025
1 parent 23c92f5 commit 8d1d73b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export function useOrdersTableList(
const params = getOrderParams(chainId, balancesAndAllowances, order)
const isUnfillable = params.hasEnoughBalance === false || params.hasEnoughAllowance === false

// Set the unfillable flag on the order if it's pending and unfillable
if (isPending && isUnfillable && order.isUnfillable !== isUnfillable) {
// Update the unfillable flag whenever the state changes, not just when becoming unfillable
if (isPending && order.isUnfillable !== isUnfillable) {
setIsOrderUnfillable({ chainId, id: order.id, isUnfillable })
}

Expand Down

0 comments on commit 8d1d73b

Please sign in to comment.