From 7d34dff358cca51d58f5ca3cdcbddc412a5d1c8b Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Wed, 24 Apr 2024 09:53:37 -0400 Subject: [PATCH] Invert condition --- dom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom.js b/dom.js index 552de49..3896e2f 100644 --- a/dom.js +++ b/dom.js @@ -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); };