From 294e4c220c94975ea4371c79d9f99ade0c127492 Mon Sep 17 00:00:00 2001 From: SimonTen <34440207+SimonTen@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:40:24 +0100 Subject: [PATCH] remove useless null check --- src/components/notifications/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index df015977d..abdb7549f 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -28,7 +28,7 @@ function initPermissionRequest() { const apiClient = ServerConnections.currentApiClient(); if (apiClient) { apiClient.getCurrentUser() - .then(user => user && registerOneDocumentClickHandler()) + .then(user => registerOneDocumentClickHandler()) .catch(() => { Events.on(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler); });