chore: enforce brackets for if clause and for/while loops
This commit is contained in:
@@ -66,7 +66,9 @@ let open = $state(false);
|
||||
// Smart value formatting matching the Figma design
|
||||
const formattedValue = $derived(() => {
|
||||
const v = control.value;
|
||||
if (Number.isInteger(v)) return String(v);
|
||||
if (Number.isInteger(v)) {
|
||||
return String(v);
|
||||
}
|
||||
return control.step < 0.1 ? v.toFixed(2) : v.toFixed(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user