]> Untitled Git - lemmy-ui.git/commitdiff
Fix captcha replay issue.
authorDessalines <tyhou13@gmx.com>
Fri, 30 Jul 2021 15:56:33 +0000 (11:56 -0400)
committerDessalines <tyhou13@gmx.com>
Fri, 30 Jul 2021 15:56:33 +0000 (11:56 -0400)
src/shared/components/home/login.tsx

index e57825590a8980d690a26204974b85663bc71315..b227d64a9871ffe28fbdecd46a0bb03591f5004c 100644 (file)
@@ -408,6 +408,8 @@ export class Login extends Component<any, State> {
 
   handleRegenCaptcha(i: Login) {
     i.audio = null;
+    i.state.captchaPlaying = false;
+    i.setState(i.state);
     WebSocketService.Instance.send(wsClient.getCaptcha());
   }