mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Client/inventory WIP (#8527)
* some stable work and faster less recompilation * user with zero tasks can use the app * wip work to show loading status of resources * revert changes to sync
This commit is contained in:
@@ -37,7 +37,7 @@ store.watch(state => state.title, (title) => {
|
||||
|
||||
// Mount the app when user and tasks are loaded
|
||||
let userDataWatcher = store.watch(state => [state.user, state.tasks], ([user, tasks]) => {
|
||||
if (user && user._id && tasks && tasks.length) {
|
||||
if (user && user._id && Array.isArray(tasks)) {
|
||||
userDataWatcher(); // remove the watcher
|
||||
app.$mount('#app');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user