Skip to content

Commit

Permalink
sonar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rayaanoidPrime committed May 21, 2024
1 parent 7b90b09 commit fbf5946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/user/service/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class UserService {
}
})

if (!oldOtp || !oldOtp.emailChange) {
if (!oldOtp?.emailChange) {
throw new ConflictException(
`No previous OTP for email change exists for user ${user.id}`
)
Expand Down

0 comments on commit fbf5946

Please sign in to comment.