Skip to content

Commit

Permalink
Merge pull request #1350 from guardian/fix-broken-userId-condition
Browse files Browse the repository at this point in the history
fix conditional check
  • Loading branch information
rBangay authored Jul 1, 2024
2 parents 16341c0 + 40b59d4 commit d5858e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/mpapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ router.get(
return;
}

if (!res.locals.identity && !res.locals.identity.userId) {
if (!res.locals.identity?.userId) {
log.error(
`Missing identity ID on the request object when fetching mobile subscriptions`,
);
Expand Down

0 comments on commit d5858e9

Please sign in to comment.