From 9d179c7227d70029cc74638720e9874b825abca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Mert=20Y=C4=B1ld=C4=B1ran?= Date: Sun, 17 Oct 2021 15:28:03 +0300 Subject: [PATCH] Ignore an eslint error (#351) * Ignore an eslint error * Change the fix --- ui/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);