initial load shows no error

This commit is contained in:
2024-09-19 17:54:43 +02:00
parent 0d5c46001c
commit 0ece80359f

View File

@@ -31,13 +31,13 @@ const Interface = ({ children }) => {
setBaseData(basedata)
if (!userinformation || !basedata) throw new InterfaceError("Data returned is Null");
setError(false)
setInitialLoading(false)
} catch (error) {
console.error(error);
setErrorObject(error);
setError(true)
} finally {
setLoading(false)
setInitialLoading(false)
}
}