Skip to content

Commit

Permalink
[MODIFIED] disable verify otp button when calling api (mosip#866)
Browse files Browse the repository at this point in the history
Signed-off-by: Zeeshan Mehboob <[email protected]>
  • Loading branch information
zesu22 authored Aug 30, 2024
1 parent 57530b6 commit 3f358ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oidc-ui/src/components/OtpVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,15 @@ export default function OtpVerify({
let otpChannels = commaSeparatedChannels.split(",").map((x) => x.trim());

let idvid = fields[0].prefix + vid + fields[0].postfix;
let tempCaptchaToken = captchaToken;
setCaptchaToken(null);

setStatus({ state: states.LOADING, msg: "sending_otp_msg" });
const sendOtpResponse = await post_SendOtp(
transactionId,
idvid,
otpChannels,
captchaToken
tempCaptchaToken
);
setStatus({ state: states.LOADED, msg: "" });

Expand Down

0 comments on commit 3f358ba

Please sign in to comment.