diff --git a/src/components/@atoms/CurrencyText/CurrencyText.tsx b/src/components/@atoms/CurrencyText/CurrencyText.tsx index e49ee73c4..fc509239b 100644 --- a/src/components/@atoms/CurrencyText/CurrencyText.tsx +++ b/src/components/@atoms/CurrencyText/CurrencyText.tsx @@ -27,7 +27,6 @@ export const CurrencyText = ({ eth, bufferPercentage = 100n, currency = 'eth' }: const { data: ethPrice, isLoading: isEthPriceLoading } = useEthPrice() const isLoading = isEthPriceLoading || !eth || !ethPrice - console.log('>>> ethPrice', eth, ethPrice, bufferPercentage, currency, isLoading) return ( diff --git a/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx b/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx index 414f14556..9f2a9e70a 100644 --- a/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx +++ b/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx @@ -14,6 +14,7 @@ import MinusIcon from '@app/assets/Minus.svg' import PlusIcon from '@app/assets/Plus.svg' import { useDefaultRef } from '@app/hooks/useDefaultRef' import { createChangeEvent } from '@app/utils/syntheticEvent' +import { yearsToSeconds } from '@app/utils/time' const Container = styled.div( ({ theme }) => css` @@ -191,9 +192,14 @@ export const PlusMinusControl = forwardRef( const incrementHandler = (inc: number) => () => { const newValue = (value || 0) + inc const normalizedValue = normalizeValue(newValue) + console.log(`>>>> normalizedValue`, normalizedValue) if (normalizedValue === value) return setInputValue(normalizedValue.toFixed(0)) const newEvent = createChangeEvent(normalizedValue, name) + console.log(`>>>> newEvent`, newEvent.target.value) + const newYears = parseInt(newEvent.target.value) + console.log(`>>>> newYears`, newYears) + console.log('>>> seconds', yearsToSeconds(newYears)) onChange?.(newEvent) }