From 67a654f60630710cae72419448a73a18d076d18a Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 26 Jul 2019 08:20:37 +0100 Subject: [PATCH] handle null parameter for createNormalizedTagKey --- dist/bundle.es.js | 2 +- src/util/claim.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index f0e52b7..c592cfd 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1243,7 +1243,7 @@ const isClaimNsfw = claim => { }; const createNormalizedTagKey = tags => { - return tags.sort().join(','); + return tags ? tags.sort().join(',') : ''; }; // diff --git a/src/util/claim.js b/src/util/claim.js index 84243cb..1e24a10 100644 --- a/src/util/claim.js +++ b/src/util/claim.js @@ -24,5 +24,5 @@ export const isClaimNsfw = (claim: Claim): boolean => { }; export const createNormalizedTagKey = (tags: Array): string => { - return tags.sort().join(','); + return tags ? tags.sort().join(',') : ''; };