1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/15769] Fix eslint complaints

PHPBB3-15769
This commit is contained in:
Marc Alexander
2021-08-04 21:01:41 +02:00
parent 310b451cd3
commit 8509cf2a04

View File

@@ -161,8 +161,7 @@
*/
onCrop(event) {
const data = phpbb.avatars.$data.data();
let width = event.detail.width;
let height = event.detail.height;
let { width, height } = event.detail;
if (width < data.minWidth || height < data.minHeight) {
width = Math.max(data.minWidth, Math.min(data.maxWidth, width));