19.05.2026 okkk

This commit is contained in:
2026-05-19 16:01:32 +03:00
parent 7907ff0def
commit fad50a1b1b

View File

@@ -79,7 +79,10 @@ export function SwapCard({
className={styles.input}
type="text"
value={amount}
onChange={e => onAmountChange?.(e.target.value)}
onChange={e => {
const v = e.target.value
if (/^(\d+\.?\d*|\.?\d*)$/.test(v) || v === '') onAmountChange?.(v)
}}
placeholder="0"
/>
) : (