mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Address can be undefined.
This commit is contained in:
parent
176331223a
commit
3d01d305e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue