Skip to content

Commit 8b6ee66

Browse files
committed
Typo
1 parent 274078f commit 8b6ee66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pg/icon/icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default class PgIcon extends HTMLElement {
2020
if (changes.path) {
2121
const viewBox = getComputedStyle(this).getPropertyValue('--pg-icon-viewbox');
2222
this.$svg.setAttribute('viewBox', viewBox || '0 0 24 24');
23-
if (this.path) {
23+
if (!this.path) {
2424
throw new Error('invalid path set on pg-icon');
2525
}
2626
this.$path.setAttribute('d', this.path);

0 commit comments

Comments
 (0)