Skip to content

Commit bcad4fc

Browse files
authored
fix: 0em value (#89)
1 parent bdb5c3d commit bcad4fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/native/styles/units.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { StyleFunctionResolver } from "./resolve";
55
export const em: StyleFunctionResolver = (resolve, func, get) => {
66
let value = func[2];
77

8-
if (!value) {
8+
if (typeof value !== "number") {
99
return;
1010
}
1111

0 commit comments

Comments
 (0)