From 4410834e6806d2e5bf18f61226adcab90a336d12 Mon Sep 17 00:00:00 2001 From: mkzie2 Date: Tue, 9 Dec 2025 14:16:57 +0700 Subject: [PATCH] fix: app crash on assign card page --- src/ROUTES.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ROUTES.ts b/src/ROUTES.ts index ce439c4ad1ec4..d287fe32c9f2b 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -2141,7 +2141,7 @@ const ROUTES = { route: 'workspaces/:policyID/company-cards/:feed/assign-card', // eslint-disable-next-line no-restricted-syntax -- Legacy route generation - getRoute: (policyID: string, feed: string, backTo?: string) => getUrlWithBackToParam(`workspaces/${policyID}/company-cards/${feed}/assign-card`, backTo), + getRoute: (policyID: string, feed: string, backTo?: string) => getUrlWithBackToParam(`workspaces/${policyID}/company-cards/${encodeURIComponent(feed)}/assign-card`, backTo), }, WORKSPACE_COMPANY_CARD_DETAILS: { route: 'workspaces/:policyID/company-cards/:bank/:cardID',