max fee needs to be a number
This commit is contained in:
parent
a2d9f55798
commit
9490b3dc5f
|
@ -270,7 +270,7 @@ export function LnAddrWithdrawal () {
|
||||||
schema={LnAddrSchema}
|
schema={LnAddrSchema}
|
||||||
initialError={error ? error.toString() : undefined}
|
initialError={error ? error.toString() : undefined}
|
||||||
onSubmit={async ({ addr, amount, maxFee }) => {
|
onSubmit={async ({ addr, amount, maxFee }) => {
|
||||||
const { data } = await sendToLnAddr({ variables: { addr, amount: Number(amount), maxFee } })
|
const { data } = await sendToLnAddr({ variables: { addr, amount: Number(amount), maxFee: Number(maxFee) } })
|
||||||
router.push(`/withdrawals/${data.sendToLnAddr.id}`)
|
router.push(`/withdrawals/${data.sendToLnAddr.id}`)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue