Skip to content

Commit

Permalink
remove token rename in poolpair store
Browse files Browse the repository at this point in the history
  • Loading branch information
chloezxyy committed Jul 22, 2024
1 parent d407a60 commit 4370d52
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/store/poolpairs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,7 @@ export function PoolPairsProvider(props: PropsWithChildren<{}>): JSX.Element {
useEffect(() => {
function fetch(): void {
void api.poolpairs.list(200).then((data) => {
const updatedData = data.map((poolpair) => {
if (poolpair.displaySymbol.includes("dUSDT")) {
return {
...poolpair,
displaySymbol: poolpair.displaySymbol.replace("dUSDT", "csUSDT"),
};
}
return poolpair;
});
dispatch(poolpairs.actions.update(updatedData));
dispatch(poolpairs.actions.update(data));
});
}

Expand Down

0 comments on commit 4370d52

Please sign in to comment.