Ignore an eslint error (#351)

* Ignore an eslint error

* Change the fix
This commit is contained in:
M. Mert Yıldıran 2021-10-17 15:28:03 +03:00 committed by GitHub
parent 147e812edb
commit 9d179c7227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);