From 14d1022b4f4b65f9888417cb1376e196d2e21795 Mon Sep 17 00:00:00 2001 From: ghorbani Date: Thu, 30 Jul 2026 16:51:48 +0330 Subject: [PATCH] feat: add utility to determine submission path based on marriage profile status --- src/lib/get-submit-path.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib/get-submit-path.ts b/src/lib/get-submit-path.ts index 7e6753f..2bf261e 100644 --- a/src/lib/get-submit-path.ts +++ b/src/lib/get-submit-path.ts @@ -55,11 +55,7 @@ export function getSubmitPath(profile: MarriageProfileResponse | undefined) { return "/terms"; } - if (profile.status === "pending_info" && !isMatchSubmitted) { - return "/questions-list"; - } - - if (profile.status === "waiting" || isMatchSubmitted) { + if (profile.status === "waiting") { return "/finding-match"; } @@ -71,10 +67,6 @@ export function getSubmitPath(profile: MarriageProfileResponse | undefined) { return "/finding-match"; } - if (profile.status === "waiting") { - return "/finding-match"; - } - if (profile.status === "pending_info") { // 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