Skip to content

Commit

Permalink
fix: 🐛 fix new launch showing error even when it works
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Sep 29, 2024
1 parent a2a18c0 commit ba1d98c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/new-launch/new-launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
};

Expand Down

0 comments on commit ba1d98c

Please sign in to comment.