fixed client-side console error on vote

This commit is contained in:
Julian Lam
2018-08-21 22:30:30 -04:00
parent ebe8593421
commit 70f04bd1c2

View File

@@ -73,7 +73,7 @@ define('forum/topic/votes', ['components', 'translator', 'benchpress'], function
app.alertError(err.message);
}
if (err.message === '[[error:not-logged-in]]') {
if (err && err.message === '[[error:not-logged-in]]') {
ajaxify.go('login');
}
});