Update script.js

This commit is contained in:
Logan Hunt 2022-12-21 13:26:48 -07:00 committed by GitHub
parent 15459eecb2
commit d445c47d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -108,8 +108,8 @@ const loop = () => {
y: state.topLeftGridPos.y + state.gridBoxHeight,
};
}
if (Object.keys(state.diff).length) draw(state);
if (state.diff.heights) drawDesmos();
draw(state);
state.diff = {};
}