()
| 107 | * In this case, call `await captchaModal.close()` and wait for the close action to complete. |
| 108 | */ |
| 109 | const close = () => { |
| 110 | setStateShow(false); |
| 111 | resetCapture(); |
| 112 | resetImgCode(); |
| 113 | resetCallback(); |
| 114 | |
| 115 | const p = new Promise<void>((resolve) => { |
| 116 | setTimeout(resolve, 50); |
| 117 | }); |
| 118 | return p; |
| 119 | }; |
| 120 | |
| 121 | const handleCaptchaError = (fel: FieldError[] = []) => { |
| 122 | const captchaErr = fel.find((o) => { |