Web: Client: Confirm: fixed api method call

This commit is contained in:
Artem Tarasov 2020-12-17 12:38:23 +03:00
parent 28b047e93c
commit 3daee8efbb

View File

@ -118,8 +118,8 @@ class Form extends React.PureComponent {
window.addEventListener("keydown", this.onKeyPress);
window.addEventListener("keyup", this.onKeyPress);
if (isAuthenticated) {
api.user.logout;
if (this.props.isAuthenticated) {
api.user.logout();
}
}