mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fixed client-side console error on vote
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user