diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index e243f52a..d59cebc6 100644 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -113,7 +113,6 @@ const dict = { "Scanning for refundable swaps in your Rootstock Wallet...", connected_wallet_no_swaps: "The connected Rootstock Wallet does NOT contain any refundable swaps.", - rsk_log_endpoint_not_available: "Log endpoint not available", refund_external_swap: "Refund External Swap", history_no_swaps: "Looks like you didn't do any swaps yet.", refund_address_header: diff --git a/src/pages/RefundExternal.tsx b/src/pages/RefundExternal.tsx index 43fd8bd7..5675e135 100644 --- a/src/pages/RefundExternal.tsx +++ b/src/pages/RefundExternal.tsx @@ -185,9 +185,7 @@ const RefundRsk = () => { }); return ( - {t("rsk_log_endpoint_not_available")}

}> + <> {t("refund_external_explainer_rsk")}

}> 0}> @@ -201,7 +199,7 @@ const RefundRsk = () => {

-
+ ); }; @@ -216,6 +214,12 @@ const RefundExternal = () => { const selected = () => params.type ?? tabBtc.value; + const rskAvailable = + import.meta.env.VITE_RSK_LOG_SCAN_ENDPOINT !== undefined; + if (!rskAvailable) { + log.warn("RSK log scan endpoint not available"); + } + return ( }>
@@ -224,21 +228,23 @@ const RefundExternal = () => {

{t("refund_external_swap")}

-
- - {(tab) => ( -
- navigate( - `/refund/external/${tab.value}`, - ) - }> - {tab.name} -
- )} -
-
+ +
+ + {(tab) => ( +
+ navigate( + `/refund/external/${tab.value}`, + ) + }> + {tab.name} +
+ )} +
+
+