From fa340421eb97926c09c994d582a31bdecb10a49d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 1 Dec 2022 22:28:14 +0100 Subject: [PATCH] change order --- js/utils.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/js/utils.js b/js/utils.js index 6b034ef..a15d5a4 100644 --- a/js/utils.js +++ b/js/utils.js @@ -78,21 +78,21 @@ export class Quality { */ static buildGUI = (defaultValue) => { const res = { - Low: false, - Medium: false, Ultra: false, + Medium: false, + Low: false, }; // Update the default value to true switch (defaultValue) { - case this.low: - res.Low = true; + case this.ultra: + res.Ultra = true; break; case this.medium: res.Medium = true; break; - case this.ultra: - res.Ultra = true; + case this.low: + res.Low = true; break; } @@ -117,14 +117,14 @@ export class Quality { // Update the quality switch (quality) { - case "Low": - fnQuality(this.low); + case "Ultra": + fnQuality(this.ultra); break; case "Medium": fnQuality(this.medium); break; - case "Ultra": - fnQuality(this.ultra); + case "Low": + fnQuality(this.low); break; } };