Skip to content

Commit

Permalink
root loader error check refinement (#2664)
Browse files Browse the repository at this point in the history
  • Loading branch information
betimshahini authored Sep 7, 2023
1 parent 1f6840e commit 85f2e49
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/passport/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,20 @@ export const loader: LoaderFunction = getRollupReqFunctionErrorWrapper(
websiteURL: 'https://rollup.id',
}
} else {
if (['console', 'passport'].includes(params.clientId!)) {
if (
['console', 'passport'].includes(params.clientId!) ||
(clientId && ['console', 'passport'].includes(clientId))
) {
const effectiveClientId = params.clientId! ?? clientId
const name =
params.clientId!.charAt(0).toUpperCase() + params.clientId!.slice(1)
effectiveClientId.charAt(0).toUpperCase() +
effectiveClientId.slice(1)
appProps = {
name: `Rollup - ${name}`,
iconURL: LogoIndigo,
termsURL: 'https://rollup.id/tos',
privacyURL: 'https://rollup.id/privacy-policy',
redirectURI: `https://${params.clientId}.rollup.id`,
redirectURI: `https://${effectiveClientId}.rollup.id`,
websiteURL: 'https://rollup.id',
}
} else {
Expand Down

0 comments on commit 85f2e49

Please sign in to comment.