Skip to content

Commit

Permalink
Fix incorrect order of hook values
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Nov 19, 2020
1 parent 3785693 commit 9ee1eb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function useTransformImage( {
const [ position, setPosition ] = useState( { x: 0, y: 0 } );
const [ zoom, setZoom ] = useState( 100 );
const [ rotation, setRotation ] = useState( 0 );
const [ aspect, defaultAspect, setAspect ] = useLazyAspectRatio(
const [ defaultAspect, aspect, setAspect ] = useLazyAspectRatio(
width,
height
);
Expand Down

0 comments on commit 9ee1eb1

Please sign in to comment.