kopia lustrzana https://github.com/nolanlawson/pinafore
fix: fix null exception on community page (#1504)
rodzic
2b4edee216
commit
5332a4e1e9
|
@ -2,11 +2,12 @@ import { store } from '../_store/store'
|
|||
import { cacheFirstUpdateAfter } from '../_utils/sync'
|
||||
import { database } from '../_database/database'
|
||||
import { getFollowRequests } from '../_api/followRequests'
|
||||
import { get } from '../_utils/lodash-lite'
|
||||
|
||||
export async function updateFollowRequestCountIfLockedAccount (instanceName) {
|
||||
const { verifyCredentials, loggedInInstances } = store.get()
|
||||
|
||||
if (!verifyCredentials[instanceName].locked) {
|
||||
if (!get(verifyCredentials, [instanceName, 'locked'])) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue