]> Untitled Git - lemmy-ui.git/commitdiff
Fix redirect after successful password reset
authorsunaurus <sander@saarend.com>
Tue, 20 Jun 2023 10:44:26 +0000 (13:44 +0300)
committersunaurus <sander@saarend.com>
Tue, 20 Jun 2023 10:45:40 +0000 (13:45 +0300)
src/shared/components/person/password-change.tsx

index 9f5bf9277d0247982667fbb41d3fcf7b01c117c5..6475be9e1270d15bdc658ee0b5ec75a644466438 100644 (file)
@@ -140,7 +140,7 @@ export class PasswordChange extends Component<any, State> {
           UserService.Instance.myUserInfo = site.data.my_user;
         }
 
-        this.props.history.replace("/");
+        i.props.history.replace("/");
       }
     }
   }