Skip to content

Commit

Permalink
fix:[ISGS-11] Token fiat conversions (#1866)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhardwick authored Jun 5, 2024
1 parent cea3157 commit 2f2089d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export function SwapForm({ data, theme }: SwapFromProps) {
fromToken.symbol,
cryptoFiatState.conversions,
));
}, [fromAmount, fromToken]);
}, [fromAmount, fromToken, cryptoFiatState.conversions]);

const onFromSelectChange = useCallback((value: OptionKey) => {
const selected = tokenBalances
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function SwapUI() {
const updateTheme = (theme: WidgetTheme) => swap.update({config: {theme}});

useEffect(() => {
swap.mount(SWAP_TARGET_ID,{amount: '10', fromTokenAddress: 'native', toTokenAddress: "0xb95B75B4E4c09F04d5DA6349861BF1b6F163D78c"});
swap.mount(SWAP_TARGET_ID,{amount: '5', fromTokenAddress: '0x3B2d8A1931736Fc321C24864BceEe981B11c3c57', toTokenAddress: "0x1CcCa691501174B4A623CeDA58cC8f1a76dc3439"});
swap.addListener(SwapEventType.SUCCESS, (data: SwapSuccess) => {
})
swap.addListener(SwapEventType.FAILURE, (data: any) => {
Expand Down

0 comments on commit 2f2089d

Please sign in to comment.