From 7480461ac286adbc979bc3c7e8d5eeebb36e8a84 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 11 Apr 2024 10:32:42 -0500 Subject: [PATCH] don't warn about 100k if using LSPS --- src/components/ReceiveWarnings.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ReceiveWarnings.tsx b/src/components/ReceiveWarnings.tsx index 746051f1..3ba75d40 100644 --- a/src/components/ReceiveWarnings.tsx +++ b/src/components/ReceiveWarnings.tsx @@ -32,7 +32,10 @@ export function ReceiveWarnings(props: { if (state.federations?.length !== 0 && props.from_fedi_to_ln !== true) { return undefined; } - if ((state.balance?.lightning || 0n) === 0n) { + if ( + (state.balance?.lightning || 0n) === 0n && + !state.settings?.lsps_connection_string + ) { return i18n.t("receive.amount_editable.receive_too_small", { amount: "100,000" });