From 44a028f1225d426d0a5aa12367bb9fd3d6711119 Mon Sep 17 00:00:00 2001 From: Alexey Padalko Date: Wed, 13 Nov 2019 13:06:54 +0200 Subject: [PATCH] fix(ui): trim LN prs and onchain addresses in LightningInvoiceInput --- renderer/components/Form/LightningInvoiceInput.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderer/components/Form/LightningInvoiceInput.js b/renderer/components/Form/LightningInvoiceInput.js index c07b71765f6..fcfe7efee3d 100644 --- a/renderer/components/Form/LightningInvoiceInput.js +++ b/renderer/components/Form/LightningInvoiceInput.js @@ -7,6 +7,8 @@ import { Message } from 'components/UI' import TextArea from './TextArea' import messages from './messages' +const mask = value => (value ? value.trim() : value) + const validate = (intl, network, chain, value) => { if (value) { let chainName = `${chain}/lightning` @@ -52,7 +54,7 @@ const LightningInvoiceInput = props => { return ( <> -