mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-14 13:08:27 +03:00
Merge pull request #140 from mCaptcha/fix-134
fix: typecast BigInt to number in progress computation
This commit is contained in:
commit
1c9e242d7e
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ export const solveCaptchaRunner = async (e: Event): Promise<void> => {
|
|||
}
|
||||
if (resp.type === "progress") {
|
||||
if (width < 80) {
|
||||
width = (resp.nonce / max_recorded_nonce) * 100;
|
||||
width = Number(resp.nonce / max_recorded_nonce) * 100;
|
||||
setWidth(width);
|
||||
}
|
||||
console.log(`received nonce ${resp.nonce}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue