@@ -131,7 +98,7 @@ const SendEth = ({
/> */}
- {validated ? (
+ {validated !== null && validated ? (
<>>
) : (
setConfirmationOpen(false)}
handleCancelBtnClicked={() => setConfirmationOpen(false)}
handleAddBtnClicked={() => {
diff --git a/src/ui/views/Send/TransferAmount.tsx b/src/ui/views/Send/TransferAmount.tsx
index ad71f7fb..b02dad14 100644
--- a/src/ui/views/Send/TransferAmount.tsx
+++ b/src/ui/views/Send/TransferAmount.tsx
@@ -110,7 +110,6 @@ const useStyles = makeStyles(() => ({
height: '25px',
},
}));
-
const TransferAmount = ({
transactionState,
handleAmountChange,
@@ -132,17 +131,11 @@ const TransferAmount = ({
(option) => {
const selectCoin = coinStore.coins.find((coin) => coin.unit === option);
if (selectCoin) {
- // Debounce only the state updates, not the render
- const updateStates = debounce(() => {
- handleTokenChange(option);
- }, 300);
-
- updateStates();
return
;
}
return null;
},
- [coinStore, handleTokenChange]
+ [coinStore]
);
return (
@@ -215,9 +208,10 @@ const TransferAmount = ({