diff --git a/components/generate-invoice.tsx b/components/generate-invoice.tsx index cfaf55c6..29df9795 100644 --- a/components/generate-invoice.tsx +++ b/components/generate-invoice.tsx @@ -12,7 +12,11 @@ type LnInvoiceObject = { } const LN_INVOICE_CREATE_ON_BEHALF_OF_RECIPIENT = gql` - mutation lnInvoiceCreateOnBehalfOfRecipient($walletId: WalletId!, $amount: SatAmount!, $memo: Memo) { + mutation lnInvoiceCreateOnBehalfOfRecipient( + $walletId: WalletId! + $amount: SatAmount! + $memo: Memo + ) { mutationData: lnInvoiceCreateOnBehalfOfRecipient( input: { recipientWalletId: $walletId, amount: $amount, memo: $memo } ) { diff --git a/components/receive-amount.tsx b/components/receive-amount.tsx index 872f3018..d5cb825f 100644 --- a/components/receive-amount.tsx +++ b/components/receive-amount.tsx @@ -20,7 +20,7 @@ const satsFormatter = new Intl.NumberFormat("en-US", { export default function ReceiveAmount({ recipientWalletId, recipientWalletCurrency, - memo + memo, }: { recipientWalletId: string recipientWalletCurrency: string diff --git a/components/receive-no-amount.tsx b/components/receive-no-amount.tsx index cecfe684..3d8f4104 100644 --- a/components/receive-no-amount.tsx +++ b/components/receive-no-amount.tsx @@ -29,7 +29,7 @@ const LN_NOAMOUNT_INVOICE_CREATE_ON_BEHALF_OF_RECIPIENT = gql` export default function ReceiveNoAmount({ recipientWalletId, onSetAmountClick, - memo + memo, }: { recipientWalletId: string onSetAmountClick: () => void @@ -44,7 +44,7 @@ export default function ReceiveNoAmount({ useEffect(() => { createInvoice({ - variables: { memo: memo, walletId: recipientWalletId } + variables: { memo: memo, walletId: recipientWalletId }, }) }, [createInvoice, recipientWalletId, memo]) @@ -64,7 +64,6 @@ export default function ReceiveNoAmount({ invoice = invoiceData.invoice } - return ( <> {loading &&