Skip to content

Commit d515f24

Browse files
committed
minor nitpick
1 parent fb9904c commit d515f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/src/components/CSSNumericVariableWatch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const useCSSVariableWatch = (
4343
React.useLayoutEffect(() => {
4444
const value = params.ref.current!.getBoundingClientRect().height;
4545

46-
if (value) {
46+
if (value != null) {
4747
lastValueRef.current = value;
4848

4949
debug(`Variable ${params.varName} found and equals ${value}.`);

0 commit comments

Comments
 (0)