Skip to content

Commit

Permalink
fix: comparing phone number with that in the database.
Browse files Browse the repository at this point in the history
  • Loading branch information
aniebietafia committed Feb 1, 2025
1 parent ade082d commit 3f7dea3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class VerifyPhoneNumberProvider {
'User Auth does not exist.',
);

if (user.phone_number !== verifyPhoneNumberDto.phone_number)
if (user.phone_number !== extractedPhoneNumber)
throw new CustomException(
HttpStatus.BAD_REQUEST,
'Incorrect phone number.',
Expand Down

0 comments on commit 3f7dea3

Please sign in to comment.