Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix(ui-ux): filter out false status for poolpair tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
chloezxyy committed Sep 5, 2023
1 parent 118e603 commit 1a07379
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/walletkit-ui/src/store/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ export const wallet = createSlice({
(state, action: PayloadAction<DexItem[]>) => {
state.hasFetchedPoolpairData = true;
state.poolpairs = action.payload.filter(
({ data }) => !data.symbol.includes("/v1"),
); // Filter out v1 pairs due to stock split
({ data }) => !data.symbol.includes("/v1") && !data.status
); // Filter out v1 pairs due to stock split
// non-tradeable/status: false can't be used because these are used more for new poolpairs,
},
);
builder.addCase(
Expand Down

0 comments on commit 1a07379

Please sign in to comment.