diff --git a/src/components/image.tsx b/src/components/image.tsx index 052a60d..1cd189c 100644 --- a/src/components/image.tsx +++ b/src/components/image.tsx @@ -73,7 +73,7 @@ export default function RoseImage(props: Props) { (event: Event) => { const size = event.payload; - if (window_size == null || (size.width !== window_size.width && size.height !== window_size.height)) { + if (window_size == null || size.width !== window_size.width || size.height !== window_size.height) { setWindowSize({width: size.width, height: size.height}); } }