Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindehli committed May 1, 2024
1 parent 45ae96e commit 8d9d545
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export function capitalizeFirstLetter(string) {
if (!string?.length) return "";
return string.charAt(0).toUpperCase() + string.slice(1);
}

Expand Down

0 comments on commit 8d9d545

Please sign in to comment.