added validation on fetch store data
This commit is contained in:
parent
15c4532e5b
commit
ffadcf5cf0
1 changed files with 1 additions and 3 deletions
|
|
@ -42,9 +42,7 @@ export function StoreProvider({ children }) {
|
|||
const res = await checkHasApiKey();
|
||||
console.log(res);
|
||||
setHasApiKey(res?.has_api_key ?? false);
|
||||
if (!res?.has_api_key) {
|
||||
setValidApiKey(false);
|
||||
}
|
||||
setValidApiKey(res?.is_valid ?? false);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue