Skip to content

Commit

Permalink
Merge pull request #200 from rlansky-percipient/replace_dollar_signs_…
Browse files Browse the repository at this point in the history
…in_names

update use of Component_.name to account for dollar signs in the name
  • Loading branch information
garronej authored Oct 18, 2023
2 parents 231a79e + 1cae4ec commit 69c5ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/withStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function createWithStyles<Theme>(params: {
const { name } = Component_;

if (name) {
return name;
return name.replace(/\$/g, "usd");
}
}
})();
Expand Down
2 changes: 1 addition & 1 deletion src/withStyles_compat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function createWithStyles<Theme>(params: {
const { name } = Component_;

if (name) {
return name;
return name.replace(/\$/g, "usd");
}
}
})();
Expand Down

0 comments on commit 69c5ff2

Please sign in to comment.