From 3d01d305e50f93392a686a91f0bcad754fa4e84f Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Fri, 6 Oct 2017 11:35:30 +0300 Subject: [PATCH] Address can be undefined. --- src/util/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); }