Skip to content

Commit

Permalink
don't warn about 100k if using LSPS
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and TonyGiorgio committed Apr 12, 2024
1 parent ba062d5 commit 7480461
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ReceiveWarnings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand Down

0 comments on commit 7480461

Please sign in to comment.