Skip to content

Commit

Permalink
GAP-1979 - Fixed logic for url display for apply and find migration s…
Browse files Browse the repository at this point in the history
…tatuses
  • Loading branch information
kiramarstonTCO committed Oct 4, 2023
1 parent d7c174c commit 27e804c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/applicant/src/utils/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@ export const routes = {
isNewApplicant: {
index: (applyMigrationStatus?, findMigrationStatus?) => {
let url = `/api/isNewApplicant`;

if (applyMigrationStatus) {
url += `?applyMigrationStatus=${applyMigrationStatus}`;
}
if (applyMigrationStatus && findMigrationStatus) {
url += `&`;
}
if (findMigrationStatus) {
if (findMigrationStatus && !applyMigrationStatus) {
url += `?findMigrationStatus=${findMigrationStatus}`;
} else if (findMigrationStatus) {
url += `${findMigrationStatus}`;
}
return url;
},
Expand Down

0 comments on commit 27e804c

Please sign in to comment.