Skip to content

Commit

Permalink
Invert condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Nefsen402 committed Apr 24, 2024
1 parent 8cc93e1 commit 7d34dff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ export const h = (e, props = {}, ...children) => {
populateSignals(signals, def, e, o, set);
}

if (!len(signals)) {
if (len(signals)) {
return createElement(e, signals);
} else {
return e;
}

return createElement(e, signals);
};

0 comments on commit 7d34dff

Please sign in to comment.