Address can be undefined.

This commit is contained in:
Vesa Luusua 2017-10-06 11:35:30 +03:00
parent 176331223a
commit 3d01d305e5

View file

@ -222,7 +222,7 @@ export const userAbbreviatedName = (user, bannedUserAbbreviatedName) => {
* TODO: address will be moved to custom field, when API supports custom fields.
*/
export const parseAddress = address => {
if (typeof address !== 'string') {
if (!(typeof address === 'string' || address == null)) {
throw new Error('Address must be a string.');
}