Skip to content

Commit

Permalink
Merge pull request #671 from stakwork/bugfix/632
Browse files Browse the repository at this point in the history
fix: force description to be string
  • Loading branch information
Rassl authored Dec 9, 2023
2 parents 1a46884 + 0d58b91 commit 3473ad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/formatDescription/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ export function formatDescription(description: string | undefined) {
return ''
}

return description.replace(/[[]{2}/g, '').replace(/[\]]{2}/g, '')
return String(description)
.replace(/[[]{2}/g, '')
.replace(/[\]]{2}/g, '')
}

0 comments on commit 3473ad0

Please sign in to comment.