From a927f97e32965b7c3f2a416334ddace28df04a05 Mon Sep 17 00:00:00 2001 From: JP1998 Date: Fri, 30 Nov 2018 13:22:34 +0100 Subject: [PATCH] Solve a bug with the error messages of unknown errors when logging in --- js/api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/api.js b/js/api.js index 22fcf45..4051e1b 100644 --- a/js/api.js +++ b/js/api.js @@ -102,10 +102,10 @@ const reducer_userinfo = (state = defaultstate_userinfo, action) => { console.log(error); console.log(errorMessages['login_errorunknown']['en']); __store.dispatch({ - type : actiontypes_userinfo.LOGIN_RESULT_ERROR, - parameters : [ - errorMessages['login_errorunknown']['en'] - ] + 'type' : actiontypes_userinfo.LOGIN_RESULT_ERROR, + 'parameters' : { + 'errorMessages' : [ errorMessages['login_errorunknown']['en'] ] + } }); } });