diff --git a/src/utils/formatDescription/index.ts b/src/utils/formatDescription/index.ts index c46e4c7e7..77ede99fe 100644 --- a/src/utils/formatDescription/index.ts +++ b/src/utils/formatDescription/index.ts @@ -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, '') }