mirror of
https://github.com/skidoodle/hostinfo
synced 2026-04-28 17:47:36 +02:00
fix early return
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user