diff --git a/src/components/DeFi/components/AssetInput.tsx b/src/components/DeFi/components/AssetInput.tsx index 612d9548bfa..b921ccd5952 100644 --- a/src/components/DeFi/components/AssetInput.tsx +++ b/src/components/DeFi/components/AssetInput.tsx @@ -134,7 +134,6 @@ export const AssetInput: React.FC = ({ // onChange will send us the formatted value // To get around this we need to get the value from the onChange using a ref // Now when the max buttons are clicked the onChange will not fire - debugger onChange(amountRef.current ?? '', isFiat) }, [isFiat, onChange]) @@ -142,7 +141,6 @@ export const AssetInput: React.FC = ({ (values: NumberFormatValues) => { // This fires anytime value changes including setting it on max click // Store the value in a ref to send when we actually want the onChange to fire - debugger amountRef.current = values.value handleChange() }, diff --git a/src/features/defi/providers/thorchain-savers/components/ThorchainSaversManager/Deposit/components/Deposit.tsx b/src/features/defi/providers/thorchain-savers/components/ThorchainSaversManager/Deposit/components/Deposit.tsx index 5eff91c5454..26d85301171 100644 --- a/src/features/defi/providers/thorchain-savers/components/ThorchainSaversManager/Deposit/components/Deposit.tsx +++ b/src/features/defi/providers/thorchain-savers/components/ThorchainSaversManager/Deposit/components/Deposit.tsx @@ -488,14 +488,9 @@ export const Deposit: React.FC = ({ if (!contextDispatch) return contextDispatch({ type: ThorchainSaversDepositActionType.SET_LOADING, payload: true }) - return _validateCryptoAmount(value) - .then(x => { - debugger - return x - }) - .finally(() => { - contextDispatch({ type: ThorchainSaversDepositActionType.SET_LOADING, payload: false }) - }) + return _validateCryptoAmount(value).finally(() => { + contextDispatch({ type: ThorchainSaversDepositActionType.SET_LOADING, payload: false }) + }) }, [_validateCryptoAmount, contextDispatch], )