Lints some errors and warnings (#76)
This commit is contained in:
parent
2fce1637b4
commit
06e41167d0
22 changed files with 62 additions and 38 deletions
|
@ -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 || ''},
|
||||
{
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue