Open alexkopro opened 3 years ago
If a user has a 'data' field with no 'language' key in it, the language method of user model throws an error when it tries to upcase : JSON.parse(data)['language'].upcase
If a user has a 'data' field with no 'language' key in it, the language method of user model throws an error when it tries to upcase : JSON.parse(data)['language'].upcase