yearOfBirth and requiresParentalConsent were missing from redux state. Adding to the clientServer key map

This commit is contained in:
Adam Butterworth
2019-02-28 09:26:34 -05:00
committed by Adam Butterworth
parent 41339d8d6e
commit a4534551e9

View File

@@ -9,6 +9,8 @@ const clientToServerKeyMap = {
dateJoined: 'date_joined',
languageProficiencies: 'language_proficiencies',
accountPrivacy: 'account_privacy',
yearOfBirth: 'year_of_birth',
requiresParentalConsent: 'requires_parental_consent',
};
const serverToClientKeyMap = Object.entries(clientToServerKeyMap).reduce((acc, [key, value]) => {
acc[value] = key;