Skip to content

Commit

Permalink
Merge pull request Expensify#47491 from nyomanjyotisa/issue-46390
Browse files Browse the repository at this point in the history
Remove undefined from invite URL when role is not provided
  • Loading branch information
tgolen committed Aug 22, 2024
2 parents bf5d743 + 00b25e4 commit d2eaf93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?',
Expand Down

0 comments on commit d2eaf93

Please sign in to comment.