From a584ef0d953517b40179741fe55a7adec4895597 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sat, 14 May 2016 16:00:14 +0300 Subject: [PATCH] #57: send user language during registration --- src/components/auth/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/auth/actions.js b/src/components/auth/actions.js index ae800d2..a247ae5 100644 --- a/src/components/auth/actions.js +++ b/src/components/auth/actions.js @@ -69,10 +69,10 @@ export function register({ rePassword = '', rulesAgreement = false }) { - return wrapInLoader((dispatch) => + return wrapInLoader((dispatch, getState) => request.post( '/api/signup', - {email, username, password, rePassword, rulesAgreement} + {email, username, password, rePassword, rulesAgreement, lang: getState().user.lang} ) .then(() => { dispatch(updateUser({