about summary refs log tree commit diff
path: root/src/state/models/profile-ui.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-09 17:34:55 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-09 17:34:55 -0600
commitecf56729b0da535f1d0b794268c7856836e76bd6 (patch)
tree1c9a99b6e13a722c0f2b4db89c4391194c0132b0 /src/state/models/profile-ui.ts
parente7536289cbb4380dc82dcd70737e165727cbbb92 (diff)
downloadvoidsky-ecf56729b0da535f1d0b794268c7856836e76bd6.tar.zst
More informative empty state for scenes
Diffstat (limited to 'src/state/models/profile-ui.ts')
-rw-r--r--src/state/models/profile-ui.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/state/models/profile-ui.ts b/src/state/models/profile-ui.ts
index a9062bf92..0a70525fa 100644
--- a/src/state/models/profile-ui.ts
+++ b/src/state/models/profile-ui.ts
@@ -139,7 +139,11 @@ export class ProfileUiModel {
   }
 
   async loadMore() {
-    if (!this.currentView.isLoading && !this.currentView.hasError) {
+    if (
+      !this.currentView.isLoading &&
+      !this.currentView.hasError &&
+      !this.currentView.isEmpty
+    ) {
       await this.currentView.loadMore()
     }
   }