Skip to content

Commit

Permalink
fix swap bug (#3253)
Browse files Browse the repository at this point in the history
  • Loading branch information
wow-sven authored Jan 29, 2025
1 parent 0dcff55 commit d712f8f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function SelectTokenPair({ onLoading, onCallback }: SelectTokenPa
type: yCoin.coin_type,
icon: yCoin.icon_url || undefined,
symbol: yCoin.symbol,
amount: yCount,
amount: fixdYCount.toString(),
decimal: yCoin.decimals,
}
);
Expand Down Expand Up @@ -226,8 +226,10 @@ export default function SelectTokenPair({ onLoading, onCallback }: SelectTokenPa
value={xValue}
label="X"
onChange={(e: SelectChangeEvent) => {
console.log('select x');
const s = e.target.value;
setX(tokenPair!.get(s)![0].x);
const x = tokenPair!.get(s)![0].x;
setX(x);
setXValue(e.target.value);
setY(undefined);
setYValue('');
Expand Down

0 comments on commit d712f8f

Please sign in to comment.