19.05.2026 okkk
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user