diff --git a/src/ROUTES.ts b/src/ROUTES.ts index dd87e5a9996f..ac68ba3df257 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -350,7 +350,7 @@ const ROUTES = { }, ROOM_INVITE: { route: 'r/:reportID/invite/:role?', - getRoute: (reportID: string, role?: string) => `r/${reportID}/invite/${role}` as const, + getRoute: (reportID: string, role?: string) => `r/${reportID}/invite/${role ?? ''}` as const, }, MONEY_REQUEST_HOLD_REASON: { route: ':type/edit/reason/:transactionID?',