From ba1d98c833693cdf33d8eb113185bf359cf06893 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Sun, 29 Sep 2024 10:48:52 -0400 Subject: [PATCH] fix: :bug: fix new launch showing error even when it works --- src/plugins/new-launch/new-launch.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/new-launch/new-launch.ts b/src/plugins/new-launch/new-launch.ts index 7a011949..615acf67 100644 --- a/src/plugins/new-launch/new-launch.ts +++ b/src/plugins/new-launch/new-launch.ts @@ -258,10 +258,16 @@ export class NewLaunch extends KeepTrackPlugin { }, validationFunc: (data: any) => typeof data.satPos !== 'undefined', error: () => { + if (!this.isDoingCalculations) { + // If we are not doing calculations, then it must have finished already. + return; + } + this.isDoingCalculations = false; hideLoading(); uiManagerInstance.toast('Cruncher failed to meet requirement after multiple tries! Is this launch even possible?', ToastMsgType.critical); }, + maxRetries: 50, }); };