fix: Small fixes
This commit is contained in:
@@ -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