Skip to content

Commit

Permalink
Updated imodel connection closed code and env.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebGerman committed Feb 12, 2024
1 parent 1bd5658 commit 7529e3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const pollForComparisonJobTillComplete = async (args: RunStartComparisonV2Args)
return;
}
comparisonJob = await getComparisonJob();
if (comparisonJob.status === "Completed") {
if (comparisonJob.status === "Completed" && !isConnectionClosed) {
conditionallyToastJobCompletion({ ...args, comparisonJob: { comparisonJob: comparisonJob } });
return;
}
Expand Down
5 changes: 2 additions & 3 deletions packages/test-app-frontend/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ export function applyUrlPrefix(base: string, url = ""): string {

/**
* Prepends base with urlPrefix from env.
* dev- will default to qa-.
* no url prefix will default to qa.
* dev- will default to qa-{base}
*/
export function applyAuthUrlPrefix(base: string): string {
let deploymentRegion = urlPrefix;
if ((!!urlPrefix) || urlPrefix === "dev") {
if (deploymentRegion === "dev-") {
deploymentRegion = "qa-";
}
const normalizedUrl = new URL(base);
Expand Down

0 comments on commit 7529e3b

Please sign in to comment.