19.05.2026 okkk
This commit is contained in:
@@ -79,7 +79,10 @@ export function SwapCard({
|
|||||||
className={styles.input}
|
className={styles.input}
|
||||||
type="text"
|
type="text"
|
||||||
value={amount}
|
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"
|
placeholder="0"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user