Skip to content

Commit bf324af

Browse files
committed
only specify if data.user is null, remove extra space
1 parent ce2e83a commit bf324af

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

client/modules/User/actions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ export function getUser() {
9696
const response = await apiClient.get('/session');
9797
const { data } = response;
9898

99-
// If data.user is null, undefined, or not present
100-
if (!data?.user) {
99+
if (data?.user === null) {
101100
return;
102101
}
103102

server/controllers/session.controller.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export function destroySession(req, res, next) {
4545
next(error);
4646
return;
4747
}
48-
4948
res.json({ success: true });
5049
});
5150
});

0 commit comments

Comments
 (0)