fix: why even optimize

This commit is contained in:
Vlad Stan 2023-07-19 10:21:03 +03:00
parent 388a32bc47
commit bb2d68d7dc

View file

@ -110,7 +110,7 @@ const market = async () => {
config(n, o) { config(n, o) {
if (!n?.opts?.ui?.banner) { if (!n?.opts?.ui?.banner) {
this.bannerImage = this.defaultBanner this.bannerImage = this.defaultBanner
} else if (n?.opts?.ui?.banner !== o?.opts?.ui?.banner) { } else {
this.bannerImage = null this.bannerImage = null
setTimeout(() => { setTimeout(() => {
this.bannerImage = this.sanitizeImageSrc(n?.opts?.ui?.banner, this.defaultBanner), 1 this.bannerImage = this.sanitizeImageSrc(n?.opts?.ui?.banner, this.defaultBanner), 1
@ -118,7 +118,7 @@ const market = async () => {
} }
if (!n?.opts?.ui?.picture) { if (!n?.opts?.ui?.picture) {
this.logoImage = this.defaultLogo this.logoImage = this.defaultLogo
} else if (n?.opts?.ui?.picture !== o?.opts?.ui?.picture) { } else {
this.logoImage = null this.logoImage = null
setTimeout(() => { setTimeout(() => {
this.logoImage = this.sanitizeImageSrc(n?.opts?.ui?.picture, this.defaultLogo), 1 this.logoImage = this.sanitizeImageSrc(n?.opts?.ui?.picture, this.defaultLogo), 1