mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-16 13:21:10 -05:00
🐛 fix(subscribe): Update value validation to check for number type in subscribe form
This commit is contained in:
parent
e8a72d5579
commit
6de29d51c4
@ -516,7 +516,7 @@ export default function SubscribeForm<T extends Record<string, any>>({
|
|||||||
placeholder={t('form.selectResetCycle')}
|
placeholder={t('form.selectResetCycle')}
|
||||||
{...field}
|
{...field}
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
if (value >= 0) {
|
if (typeof value === 'number') {
|
||||||
form.setValue(field.name, value);
|
form.setValue(field.name, value);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user