diff --git a/ui/src/App.tsx b/ui/src/App.tsx index f09aed239..8f654a325 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -35,7 +35,7 @@ const App = () => { try { const recentTLSLinks = await api.getRecentTLSLinks(); if (recentTLSLinks?.length > 0) { - setAddressesWithTLS(new Set([...addressesWithTLS, ...recentTLSLinks])); + setAddressesWithTLS(new Set(recentTLSLinks)); setShowTLSWarning(true); } const auth = await api.getAuthStatus(); @@ -45,7 +45,7 @@ const App = () => { } })(); - },[]); + }, []); const onTLSDetected = (destAddress: string) => { addressesWithTLS.add(destAddress);