Skip to content

Node.js based forum software built for the modern web

fixed client-side console error on vote

Julian Lam70f04bd1c28b
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');
}
});