Skip to content

Commit

Permalink
Fix combat hud crashing when creature has no type or class
Browse files Browse the repository at this point in the history
  • Loading branch information
KitCat420 committed May 24, 2024
1 parent 115a3cc commit 57f2577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Use fly speed for movement when active token is elevated
- Add default weapon sets for actors
- Shorten "Full Round" action bar label to "Full"
- Fix combat hud crashing when creature has no type or class

## v0.9.3
- Exclude 0 level classes from token description
Expand Down
2 changes: 1 addition & 1 deletion modules/util.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const stripRollFlairs = (formula) => formula.replace(/\[[^\]]*]/g, "");

export function ucFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
return string ? string.charAt(0).toUpperCase() + string.slice(1) : '';
}

export function unique(array) {
Expand Down

0 comments on commit 57f2577

Please sign in to comment.