max fee needs to be a number

This commit is contained in:
keyan 2022-02-02 14:56:14 -06:00
parent a2d9f55798
commit 9490b3dc5f
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ export function LnAddrWithdrawal () {
schema={LnAddrSchema}
initialError={error ? error.toString() : undefined}
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}`)
}}
>