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 (
<>
-
+
{value && !fieldState.error && (