refactor: simplify logical expressions and update biome linting rules

This commit is contained in:
ramvignesh-b
2026-04-14 00:16:25 +05:30
parent 1f94df1309
commit 5c81d617bd
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export default function Activate() {
const navigate = useNavigate();
useEffect(() => {
if (!uidb64 || !token || hasCalled.current) return;
if (!(uidb64 && token) || hasCalled.current) return;
// prevent double api calls
hasCalled.current = true;