fix early return

This commit is contained in:
2026-03-07 00:54:57 +01:00
parent 85942e5827
commit 25d0865f89
+4 -1
View File
@@ -8,7 +8,10 @@ export function useHostInfo() {
const fetchInfo = async () => {
try {
const [tab] = await browser.tabs.query({ active: true, currentWindow: true });
if (!tab?.id) return;
if (!tab?.id) {
if (isMounted) setLoading(false);
return;
}
const data = await StorageService.getTabState(tab.id);
if (data) {