fix the component macro when the function takes a single argument

This commit is contained in:
Evan Almloff committed 2024-01-11 12:01:40 -06:00
1 parent bcbb647d02
commit 8d783490a0
1 file changed
+1 -1
@@ -194,7 +194,7 @@ impl Parse for ComponentBody {
));
}
let has_extra_args = item_fn.sig.inputs.len() > 1;
let has_extra_args = !item_fn.sig.inputs.is_empty();
Ok(Self {
item_fn,