handle null parameter for createNormalizedTagKey

This commit is contained in:
Akinwale Ariwodola 2019-07-26 08:20:37 +01:00
parent e3d12fb896
commit 67a654f606
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -1243,7 +1243,7 @@ const isClaimNsfw = claim => {
};
const createNormalizedTagKey = tags => {
return tags.sort().join(',');
return tags ? tags.sort().join(',') : '';
};
//

View file

@ -24,5 +24,5 @@ export const isClaimNsfw = (claim: Claim): boolean => {
};
export const createNormalizedTagKey = (tags: Array<string>): string => {
return tags.sort().join(',');
return tags ? tags.sort().join(',') : '';
};