From 5332a4e1e963e262b5c71b8119495b53df2ade0b Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 21 Sep 2019 13:43:45 -0700 Subject: [PATCH] fix: fix null exception on community page (#1504) --- src/routes/_actions/followRequests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }