From 70f04bd1c28b5243fdb9052e800e607b1ed51abf Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 21 Aug 2018 22:30:30 -0400 Subject: [PATCH] fixed client-side console error on vote --- public/src/client/topic/votes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic/votes.js b/public/src/client/topic/votes.js index 0c63fc47ed..1d17e03d46 100644 --- a/public/src/client/topic/votes.js +++ b/public/src/client/topic/votes.js @@ -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'); } });