fix: Small fixes
This commit is contained in:
1 parent
b6e2b2e514
commit
e3bacc3296
7 files changed
+7
-5
No files matched your search
@@ -26,7 +26,7 @@ const createIsLoadingStore = (i18n: i18nType) => {
|
||||
// if loaded resources are empty || {}, set loading to true
|
||||
i18n.on('loaded', (resources) => {
|
||||
// console.log('loaded:', resources);
|
||||
Object.keys(resources).length !== 0 && isLoading.set(false);
|
||||
isLoading.set(Object.keys(resources).length === 0);
|
||||
});
|
||||
|
||||
// if resources failed loading, set loading to true
|
||||
|
||||
Reference in new issue
Block a user