From a78fd221580a820ca43347903f7b037f0d4a8bd5 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 18 Jan 2024 16:10:13 -0500 Subject: [PATCH] Fix whitespace and unused variable Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/components/notifications/notifications.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index abdb7549f..1e4d38b48 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -17,6 +17,7 @@ function onOneDocumentClick() { Notification.requestPermission(); } } + function registerOneDocumentClickHandler() { Events.off(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler); @@ -28,7 +29,7 @@ function initPermissionRequest() { const apiClient = ServerConnections.currentApiClient(); if (apiClient) { apiClient.getCurrentUser() - .then(user => registerOneDocumentClickHandler()) + .then(() => registerOneDocumentClickHandler()) .catch(() => { Events.on(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler); });