diff --git a/src/app/screens/ReceiveInvoice/index.tsx b/src/app/screens/ReceiveInvoice/index.tsx
index 97ec9e456e..9540b229c3 100644
--- a/src/app/screens/ReceiveInvoice/index.tsx
+++ b/src/app/screens/ReceiveInvoice/index.tsx
@@ -40,6 +40,7 @@ function ReceiveInvoice() {
amount: "0",
description: "",
expiration: "",
+ includePrivateChannels: false,
});
const [loadingInvoice, setLoadingInvoice] = useState(false);
const [invoice, setInvoice] = useState<{
@@ -78,7 +79,10 @@ function ReceiveInvoice() {
) {
setFormData({
...formData,
- [event.target.name]: event.target.value.trim(),
+ [event.target.name]:
+ event.target.type === "checkbox"
+ ? (event.target as HTMLInputElement).checked
+ : event.target.value.trim(),
});
}
@@ -109,6 +113,7 @@ function ReceiveInvoice() {
amount: "0",
description: "",
expiration: "",
+ includePrivateChannels: false,
});
setPaid(false);
setPollingForPayment(false);
@@ -121,6 +126,7 @@ function ReceiveInvoice() {
const response = await api.makeInvoice({
amount: formData.amount,
memo: formData.description,
+ includePrivateChannels: formData.includePrivateChannels,
});
setInvoice(response);
checkPayment(response.rHash);
@@ -294,6 +300,27 @@ function ReceiveInvoice() {
onChange={handleChange}
/>
+
+
+
+
+
+