Skip to content

Commit

Permalink
fix: add undefined to string param
Browse files Browse the repository at this point in the history
  • Loading branch information
lasseitorp committed Sep 10, 2024
1 parent 1a5d4e8 commit 1f5f2ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @unionen/icons

## 1.4.10

### Patch Changes

- add undefined to string param

## 1.4.9

### Patch Changes
Expand Down Expand Up @@ -180,3 +186,4 @@

- added conventional commits
- 8699734: Initial commit

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unionen/icons",
"version": "1.4.9",
"version": "1.4.10",
"description": "An iconset for FormKit inputs used on unionen.se",
"private": false,
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export function singleQuotes(param: string): string {
* @public
*/
export function makeVueComponent(
param: string,
param: string | undefined,
size: "sm" | "md" | "lg" | undefined = undefined,
hide: boolean = true
) {
return h("span", {
innerHTML: singleQuotes(param),
innerHTML: param ? singleQuotes(param) : undefined,
class: size ? `icon-${size}` : undefined,
"aria-hidden": hide ? "true" : undefined,
});
Expand Down

0 comments on commit 1f5f2ee

Please sign in to comment.