about summary refs log tree commit diff
path: root/src/state
diff options
context:
space:
mode:
Diffstat (limited to 'src/state')
-rw-r--r--src/state/lib/api.ts4
-rw-r--r--src/state/models/feed-view.ts2
-rw-r--r--src/state/models/notifications-view.ts2
-rw-r--r--src/state/models/onboard.ts4
4 files changed, 7 insertions, 5 deletions
diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts
index 1dfbf5090..2738ba209 100644
--- a/src/state/lib/api.ts
+++ b/src/state/lib/api.ts
@@ -84,7 +84,7 @@ export async function post(
   if (!embed && extLink) {
     let thumb
     if (extLink.localThumb) {
-      onStateChange?.(`Uploading link thumbnail...`)
+      onStateChange?.('Uploading link thumbnail...')
       let encoding
       if (extLink.localThumb.path.endsWith('.png')) {
         encoding = 'image/png'
@@ -140,7 +140,7 @@ export async function post(
   }
 
   try {
-    onStateChange?.(`Posting...`)
+    onStateChange?.('Posting...')
     return await store.api.app.bsky.feed.post.create(
       {did: store.me.did || ''},
       {
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts
index a1647518b..a7e3c6155 100644
--- a/src/state/models/feed-view.ts
+++ b/src/state/models/feed-view.ts
@@ -426,7 +426,7 @@ export class FeedModel {
     }
     this._xLoading()
     let numToFetch = this.feed.length
-    let cursor = undefined
+    let cursor
     try {
       do {
         const res: GetTimeline.Response = await this._getFeed({
diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts
index 965efb87d..32294ef33 100644
--- a/src/state/models/notifications-view.ts
+++ b/src/state/models/notifications-view.ts
@@ -366,7 +366,7 @@ export class NotificationsViewModel {
     }
     this._xLoading()
     let numToFetch = this.notifications.length
-    let cursor = undefined
+    let cursor
     try {
       do {
         const res: ListNotifications.Response =
diff --git a/src/state/models/onboard.ts b/src/state/models/onboard.ts
index 1af0223ab..5ab5ecb62 100644
--- a/src/state/models/onboard.ts
+++ b/src/state/models/onboard.ts
@@ -50,7 +50,9 @@ export class OnboardModel {
   }
 
   next() {
-    if (!this.isOnboarding) return
+    if (!this.isOnboarding) {
+      return
+    }
     let i = OnboardStageOrder.indexOf(this.stage)
     i++
     if (i >= OnboardStageOrder.length) {