From 4c6f86d7c10bde7111b4c585ec3c9c358b47e044 Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 18 Sep 2024 16:24:00 +0200 Subject: [PATCH] fix proxy logo --- frontend/src/components/TorConnection/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/TorConnection/index.tsx b/frontend/src/components/TorConnection/index.tsx index d91fd6ea9..223113b18 100644 --- a/frontend/src/components/TorConnection/index.tsx +++ b/frontend/src/components/TorConnection/index.tsx @@ -55,9 +55,13 @@ const TorIndicator = ({ }; const TorConnectionBadge = (): JSX.Element => { - const { torStatus } = useContext(AppContext); + const { torStatus, settings } = useContext(AppContext); const { t } = useTranslation(); + if (!settings.useProxy) { + return <>; + } + if (torStatus === 'OFF' || torStatus === 'STOPPING') { return (