mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-02-16 16:39:46 +03:00
fix: typecast BigInt to number in progress computation
closes: https://github.com/mCaptcha/mCaptcha/issues/134
This commit is contained in:
parent
3cd38511fa
commit
3cb0ca38ec
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