Skip to content

Commit

Permalink
Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfelixrico committed Apr 24, 2024
1 parent cd9280d commit a66420a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/modules/pad-socket/shape-watcher.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export function useShapeSocketWatcher() {
const shapeCreateHandler = useCallback(
(payload: ShapeCreatePayload) => {
console.debug('Socket: created shape %s', payload.id)
dispatch(PadActions.removeDraftRectangle(payload.id))
dispatch(PadActions.setRectangle(payload))
dispatch(PadActions.removeRectangle(payload.id))
},
[dispatch]
)
Expand Down

0 comments on commit a66420a

Please sign in to comment.