Skip to content

Commit

Permalink
Merge pull request #2670 from IntersectMBO/fix/cannot-use-trim-of-und…
Browse files Browse the repository at this point in the history
…efined

fix: usage of trim on missing label
  • Loading branch information
MSzalowski authored Jan 22, 2025
2 parents 95955bb + 725c88f commit 4b93df7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ changes.

### Fixed

- Fix calculating stake key balance [Issue 2653](https://github.com/IntersectMBO/govtool/issues/2653)
- Fix usage of trim on missing label

### Changed

Expand Down
2 changes: 1 addition & 1 deletion govtool/frontend/src/utils/testIdFromLabel.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const testIdFromLabel = (label: string) =>
label.trim().replace(/ /g, "-").toLocaleLowerCase();
label?.trim().replace(/ /g, "-").toLocaleLowerCase();

0 comments on commit 4b93df7

Please sign in to comment.