From 6941e2a8c53580db23e6d239ef4882fdd12d2a8c Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Tue, 19 Sep 2023 14:20:56 -0400 Subject: [PATCH] Receive: LSP fee explainer: specify 'if paid over lightning' --- locales/en.json | 2 ++ views/Receive.tsx | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/locales/en.json b/locales/en.json index 2431f4c83..d4ba1bdaf 100644 --- a/locales/en.json +++ b/locales/en.json @@ -492,7 +492,9 @@ "views.Receive.np2wkhDescriptionAlt": "Use only when a service labels your SegWit address as invalid.", "views.Receive.p2trKey": "Taproot (P2TR)", "views.Receive.p2trDescription": "The latest, most powerful, bitcoin address type. Not widely supported.", + "views.Receive.lspExplainerUnified": "LSP will take the following amount as a setup fee, if paid over lightning:", "views.Receive.lspExplainer": "LSP will take the following amount as a setup fee:", + "views.Receive.lspExplainerRoutingUnified": "LSP will take the following amount as a fee, if paid over lightning:", "views.Receive.lspExplainerRouting": "LSP will take the following amount as a fee:", "views.Receive.goToLspSettings": "Go to LSP Settings", "views.Receive.lspSwitchExplainer1": "The LSP will provide you with 0-conf channels that will allow you to send and receive payments on the Lightning network.", diff --git a/views/Receive.tsx b/views/Receive.tsx index 75a39c09f..cc82154cb 100644 --- a/views/Receive.tsx +++ b/views/Receive.tsx @@ -1276,7 +1276,11 @@ export default class Receive extends React.Component< new BigNumber( zeroConfFee ).gt(1000) - ? 'views.Receive.lspExplainer' + ? selectedIndex === 0 + ? 'views.Receive.lspExplainerUnified' + : 'views.Receive.lspExplainer' + : selectedIndex === 0 + ? 'views.Receive.lspExplainerRoutingUnified' : 'views.Receive.lspExplainerRouting' )}