From 111fca09621bd9b2c8b75cab89baf3427489dc6c Mon Sep 17 00:00:00 2001 From: tdgao Date: Thu, 23 Jul 2026 21:23:38 -0700 Subject: [PATCH] format --- apps/app/src/api/ads-consent/controller.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/app/src/api/ads-consent/controller.js b/apps/app/src/api/ads-consent/controller.js index 44b5772278..c44d6b7e5b 100644 --- a/apps/app/src/api/ads-consent/controller.js +++ b/apps/app/src/api/ads-consent/controller.js @@ -24,10 +24,7 @@ class AdsConsentController { if (!cmpMain) { if (this.state.phase === 'idle') { document.documentElement.classList.remove('modrinth-ads-consent-overlay') - } else if ( - this.state.phase !== 'submitting-consent' && - this.state.phase !== 'finishing' - ) { + } else if (this.state.phase !== 'submitting-consent' && this.state.phase !== 'finishing') { this.finishConsentFlow() } return @@ -98,10 +95,7 @@ class AdsConsentController { this.submissionTimeout = null const dialogId = this.state.variant === 'usp' ? 'qc-cmp2-usp' : 'qc-cmp2-ui' - if ( - this.state.phase === 'submitting-consent' && - !document.getElementById(dialogId) - ) { + if (this.state.phase === 'submitting-consent' && !document.getElementById(dialogId)) { this.finishConsentFlow() } else if (this.state.phase === 'submitting-consent' && preSubmissionPhase) { this.state.setState(preSubmissionPhase)