initial load shows no error
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user