diff --git a/src/routes/_actions/followRequests.js b/src/routes/_actions/followRequests.js index 6d078e5e..b2edcab2 100644 --- a/src/routes/_actions/followRequests.js +++ b/src/routes/_actions/followRequests.js @@ -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 }