Remove unused injected amount param (#2241)
This commit is contained in:
parent
3a3f28beef
commit
089fe4d57b
@ -1068,15 +1068,14 @@ export function Form ({
|
|||||||
})
|
})
|
||||||
}, [storageKeyPrefix])
|
}, [storageKeyPrefix])
|
||||||
|
|
||||||
const onSubmitInner = useCallback(async ({ amount, ...values }, ...args) => {
|
const onSubmitInner = useCallback(async (values, ...args) => {
|
||||||
const variables = { amount, ...values }
|
|
||||||
if (requireSession && !me) {
|
if (requireSession && !me) {
|
||||||
throw new SessionRequiredError()
|
throw new SessionRequiredError()
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (onSubmit) {
|
if (onSubmit) {
|
||||||
await onSubmit(variables, ...args)
|
await onSubmit(values, ...args)
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err.message, err)
|
console.log(err.message, err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user