Skip to content

Commit

Permalink
chore: rename variable (#5220)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Dec 17, 2024
1 parent 0d19616 commit 006d71f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const OrdersUserDetailsTable: React.FC<Props> = (props) => {
const canceledAndExpiredCount = orders?.filter(isExpiredOrCanceled).length || 0
const preSigningCount = orders?.filter((order) => order.status === 'signing').length || 0
const showFilter = canceledAndExpiredCount > 0 || preSigningCount > 0
const allOrdersAreHidden =
const areOrdersAllHidden =
orders?.length === (showPreSigning ? 0 : preSigningCount) + (showCanceledAndExpired ? 0 : canceledAndExpiredCount)

const invertLimitPrice = (): void => {
Expand Down Expand Up @@ -207,7 +207,7 @@ const OrdersUserDetailsTable: React.FC<Props> = (props) => {
</th>
</FilterRow>
)}
{!allOrdersAreHidden && (
{!areOrdersAllHidden && (
<tr>
<th>
<span>
Expand All @@ -231,7 +231,7 @@ const OrdersUserDetailsTable: React.FC<Props> = (props) => {
}
body={
<>
{!allOrdersAreHidden ? (
{!areOrdersAllHidden ? (
orders.map((item) => (
<RowOrder
key={item.uid}
Expand Down

0 comments on commit 006d71f

Please sign in to comment.