1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-22 15:55:08 +00:00

removed foreground frome callback dependecy

This commit is contained in:
thomasrosen 2021-01-23 18:52:14 +01:00
parent 7aee89b586
commit d9f131e163

View file

@ -83,10 +83,7 @@ function Editor({ onChange, background, backgroundRatio, foreground }) {
setPhotoWidth(new_photoWidth) setPhotoWidth(new_photoWidth)
setPhotoHeight(new_photoHeight) setPhotoHeight(new_photoHeight)
} }
}, [ }, [backgroundRatio])
backgroundRatio,
foreground,
])
useEffect(() => { useEffect(() => {
const { const {