diff --git a/public/react/src/common/components/Cropper.js b/public/react/src/common/components/Cropper.js index 7e8a5792e..632950434 100644 --- a/public/react/src/common/components/Cropper.js +++ b/public/react/src/common/components/Cropper.js @@ -81,8 +81,8 @@ class Cropper extends Component { $.ajaxSetup({ cache: true }); - const isDev = isDev() - let _path = isDev ? 'public' : 'build' + const _isDev = isDev() + let _path = _isDev ? 'public' : 'build' $('head').append($('') .attr('href', `${_url_origin}/react/${_path}/js/cropper/cropper.min.css`)); diff --git a/public/react/src/modules/user/account/ChangeHeaderPicModal.js b/public/react/src/modules/user/account/ChangeHeaderPicModal.js index 89f21838e..08b4e9d18 100644 --- a/public/react/src/modules/user/account/ChangeHeaderPicModal.js +++ b/public/react/src/modules/user/account/ChangeHeaderPicModal.js @@ -59,7 +59,7 @@ class ChangeHeaderPicModal extends Component{ if (visible) { setTimeout(() => { this.init() - }, 300) + }, 500) } }