Skip to content

Commit

Permalink
add new ci logs
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Feb 3, 2025
1 parent 2f7713f commit be24503
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/@atoms/CurrencyText/CurrencyText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Skeleton loading={isLoading}>
Expand Down
6 changes: 6 additions & 0 deletions src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit be24503

Please sign in to comment.