diff --git a/src/util/data.js b/src/util/data.js index 4945ffca..bcbe2e79 100644 --- a/src/util/data.js +++ b/src/util/data.js @@ -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.'); }