Skip to content

Commit

Permalink
fix: fix lint issues (#5229)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Dec 18, 2024
1 parent 0a4429e commit 25d30bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react'

import { Command } from '@cowprotocol/types'
import { TruncatedText } from '@cowprotocol/ui/pure/TruncatedText'

import { faExchangeAlt } from '@fortawesome/free-solid-svg-icons'
Expand All @@ -23,11 +24,10 @@ import { getLimitPrice } from 'utils/getLimitPrice'
import { OrderSurplusDisplayStyledByRow } from './OrderSurplusTooltipStyledByRow'
import { ToggleFilter } from './ToggleFilter'

import { TableState } from '../../../explorer/components/TokensTableWidget/useTable'
import { SimpleTable, SimpleTableProps } from '../../common/SimpleTable'
import { StatusLabel } from '../StatusLabel'
import { UnsignedOrderWarning } from '../UnsignedOrderWarning'
import { TableState } from '../../../explorer/components/TokensTableWidget/useTable'
import { Command } from '@cowprotocol/types'

const EXPIRED_CANCELED_STATES: OrderStatus[] = ['cancelled', 'cancelling', 'expired']

Expand All @@ -37,7 +37,7 @@ function isExpiredOrCanceled(order: Order): boolean {
if (!executedSellAmount.isZero() || !executedBuyAmount.isZero()) return false

// Otherwise, return if the order is expired or canceled
return EXPIRED_CANCELED_STATES.includes(order.status)
return EXPIRED_CANCELED_STATES.includes(status)
}

const tooltip = {
Expand Down

0 comments on commit 25d30bb

Please sign in to comment.