diff --git a/src/functions/helpers.js b/src/functions/helpers.js index f763202..82010dc 100644 --- a/src/functions/helpers.js +++ b/src/functions/helpers.js @@ -1,4 +1,5 @@ export function capitalizeFirstLetter(string) { + if (!string?.length) return ""; return string.charAt(0).toUpperCase() + string.slice(1); }