From 97641cfee7899e1f568904f27b6cf0d7b94bd829 Mon Sep 17 00:00:00 2001 From: koalasat Date: Thu, 13 Feb 2025 12:21:05 +0100 Subject: [PATCH] Hide secure alert on onion address --- frontend/src/components/HostAlert/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/HostAlert/index.tsx b/frontend/src/components/HostAlert/index.tsx index 7dee8f94..37f8cdaf 100644 --- a/frontend/src/components/HostAlert/index.tsx +++ b/frontend/src/components/HostAlert/index.tsx @@ -9,7 +9,7 @@ const HostAlert = (): JSX.Element => { !hostUrl.includes('robosats') && (client === 'selfhosted' || client === 'desktop') ? SelfhostedAlert : UnsafeAlert; - return component(); + return hostUrl.endsWith('.onion') ? <> : component(); }; export default HostAlert;