diff --git a/package.json b/package.json index 0926faf..5064319 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@docknetwork/prettyvc", "description": "Render pretty verifiable credentials", - "version": "1.3.10", + "version": "1.3.11", "main": "lib/index.js", "license": "MIT", "repository": { diff --git a/src/utils/sanitize.js b/src/utils/sanitize.js index ad24835..63b5b1a 100644 --- a/src/utils/sanitize.js +++ b/src/utils/sanitize.js @@ -1,4 +1,7 @@ export default function sanitize(str) { + if (!str) { + return ''; + } const strValue = str.toString(); // calling tostring incase of numbers if (!strValue) { return '';