Skip to content

Commit 4b93df7

Browse files
authored
Merge pull request #2670 from IntersectMBO/fix/cannot-use-trim-of-undefined
fix: usage of trim on missing label
2 parents 95955bb + 725c88f commit 4b93df7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ changes.
1616

1717
### Fixed
1818

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

2121
### Changed
2222

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export const testIdFromLabel = (label: string) =>
2-
label.trim().replace(/ /g, "-").toLocaleLowerCase();
2+
label?.trim().replace(/ /g, "-").toLocaleLowerCase();

0 commit comments

Comments
 (0)