|
|
@ -55,11 +55,7 @@ export function getSubmitPath(profile: MarriageProfileResponse | undefined) { |
|
|
return "/terms"; |
|
|
return "/terms"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (profile.status === "pending_info" && !isMatchSubmitted) { |
|
|
|
|
|
return "/questions-list"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (profile.status === "waiting" || isMatchSubmitted) { |
|
|
|
|
|
|
|
|
if (profile.status === "waiting") { |
|
|
return "/finding-match"; |
|
|
return "/finding-match"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -71,10 +67,6 @@ export function getSubmitPath(profile: MarriageProfileResponse | undefined) { |
|
|
return "/finding-match"; |
|
|
return "/finding-match"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (profile.status === "waiting") { |
|
|
|
|
|
return "/finding-match"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (profile.status === "pending_info") { |
|
|
if (profile.status === "pending_info") { |
|
|
// The backend may still report pending_info for a moment right after the
|
|
|
// The backend may still report pending_info for a moment right after the
|
|
|
// match request is sent, so honour a short grace window to avoid bouncing
|
|
|
// match request is sent, so honour a short grace window to avoid bouncing
|
|
|
|