Skip to content

Commit 8157513

Browse files
committed
bug: fixed issue where typing in an x in px crashes the app
1 parent 572223a commit 8157513

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/utils/DraggableVertice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const DraggableVertice = (props) => {
4848
}
4949

5050
} else if (props.x.includes("px")) {
51-
setX(x = parseFloat(props.x));
51+
setX(parseFloat(props.x));
5252
xValue = parseFloat(props.x.substring(0, props.x.indexOf("px") + 2));
5353

5454
if (xValue > 280) {

0 commit comments

Comments
 (0)