From dffb5bdfdcffc7e1f85888b7222468bfb95a05ac Mon Sep 17 00:00:00 2001
From: brynnchernosky <56202540+brynnchernosky@users.noreply.github.com>
Date: Wed, 22 Feb 2023 22:37:37 -0500
Subject: improvements

---
 src/client/views/nodes/PhysicsSimulationWedge.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/client/views/nodes/PhysicsSimulationWedge.tsx')

diff --git a/src/client/views/nodes/PhysicsSimulationWedge.tsx b/src/client/views/nodes/PhysicsSimulationWedge.tsx
index c5a186f18..6134a6bc0 100644
--- a/src/client/views/nodes/PhysicsSimulationWedge.tsx
+++ b/src/client/views/nodes/PhysicsSimulationWedge.tsx
@@ -49,11 +49,9 @@ export default class Wedge extends React.Component<IWedgeProps, IState> {
   }
 
   componentDidUpdate(prevProps: Readonly<IWedgeProps>, prevState: Readonly<IState>, snapshot?: any): void {
-    if (prevState.coordinates != this.state.coordinates) {
-      this.updateCoordinates();
-    }
     if (prevProps.startHeight != this.props.startHeight || prevProps.startWidth != this.props.startWidth) {
       this.setState({angleInRadians: Math.atan(this.props.startHeight / this.props.startWidth)});
+      this.updateCoordinates();
     } 
   }
   
-- 
cgit v1.2.3-70-g09d2

