Skip to content

Commit

Permalink
Merge pull request #23 from docknetwork/SamHellawell-patch-1
Browse files Browse the repository at this point in the history
Update sanitize.js
  • Loading branch information
cykoder authored Nov 28, 2022
2 parents 8eb049e + 6e58ba3 commit 39b4924
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions src/utils/sanitize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export default function sanitize(str) {
if (!str) {
return '';
}
const strValue = str.toString(); // calling tostring incase of numbers
if (!strValue) {
return '';
Expand Down

0 comments on commit 39b4924

Please sign in to comment.