Skip to content

Commit

Permalink
Fix whitespace and unused variable
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
  • Loading branch information
thornbill and dmitrylyzo committed Jan 18, 2024
1 parent 294e4c2 commit a78fd22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/notifications/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function onOneDocumentClick() {
Notification.requestPermission();
}
}

function registerOneDocumentClickHandler() {
Events.off(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler);

Expand All @@ -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);
});
Expand Down

0 comments on commit a78fd22

Please sign in to comment.