fixed client-side console error on vote

v1.18.x
Julian Lam 7 years ago
parent ebe8593421
commit 70f04bd1c2

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

Loading…
Cancel
Save