Surface setup error state instead of console.warn in useSetup
This commit is contained in:
@@ -47,9 +47,6 @@ export function useSetup(): UseSetupResult {
|
||||
} catch (err: unknown) {
|
||||
const fallback = "Failed to fetch setup status";
|
||||
handleFetchError(err, setError, fallback);
|
||||
if (!(err instanceof DOMException && err.name === "AbortError")) {
|
||||
console.warn("Setup status check failed:", err instanceof Error ? err.message : fallback);
|
||||
}
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user