vote
vote copied to clipboard
doTokenThing may toss error on "no token"
There is something wrong here: https://github.com/webkom/vote/blob/d2e30c5157e72013e8c5521349526f0cf8a4d8a6/client/login.js#L18 If you stay on the blank loginpage for a while ~2 min or so this is thrown: https://github.com/webkom/vote/blob/d2e30c5157e72013e8c5521349526f0cf8a4d8a6/client/login.js#L56
// console
login.js:3681 Unable to decode token: TypeError: Cannot read property 'split' of null
at doTokenThing (login.js:3641)
at login.js:3692
So I think this is run when it'd not suppose to https://github.com/webkom/vote/blob/d2e30c5157e72013e8c5521349526f0cf8a4d8a6/client/login.js#L61-L64