From 6098957817b9aa145a1052184bb8b90bd4c0bcde Mon Sep 17 00:00:00 2001 From: chloe <44501120+chloezxyy@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:50:07 +0800 Subject: [PATCH 1/2] fix(ui-ux): filter out burn2 symbol for poolpair tokens --- packages/walletkit-ui/src/store/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/walletkit-ui/src/store/wallet.ts b/packages/walletkit-ui/src/store/wallet.ts index 4cb156c..594502c 100644 --- a/packages/walletkit-ui/src/store/wallet.ts +++ b/packages/walletkit-ui/src/store/wallet.ts @@ -222,7 +222,7 @@ export const wallet = createSlice({ (state, action: PayloadAction) => { state.hasFetchedPoolpairData = true; state.poolpairs = action.payload.filter( - ({ data }) => !data.symbol.includes("/v1"), + ({ data }) => !data.symbol.includes("/v1") && !data.symbol.includes("BURN2"), ); // Filter out v1 pairs due to stock split }, ); From 03fb03b2e086a2904c5d5995ff16d3546f017b11 Mon Sep 17 00:00:00 2001 From: chloe <44501120+chloezxyy@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:26:00 +0800 Subject: [PATCH 2/2] fix prettier --- packages/walletkit-ui/src/store/wallet.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/walletkit-ui/src/store/wallet.ts b/packages/walletkit-ui/src/store/wallet.ts index 594502c..8f6a39d 100644 --- a/packages/walletkit-ui/src/store/wallet.ts +++ b/packages/walletkit-ui/src/store/wallet.ts @@ -222,7 +222,8 @@ export const wallet = createSlice({ (state, action: PayloadAction) => { state.hasFetchedPoolpairData = true; state.poolpairs = action.payload.filter( - ({ data }) => !data.symbol.includes("/v1") && !data.symbol.includes("BURN2"), + ({ data }) => + !data.symbol.includes("/v1") && !data.symbol.includes("BURN2"), ); // Filter out v1 pairs due to stock split }, );