Skip to content

Commit 2e7b880

Browse files
committed
chore(frontend): address typescript issue
1 parent 6a70c2a commit 2e7b880

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

apps/frontend/app/routes/auth.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import {
5050
import type { Route } from "./+types/auth";
5151

5252
const searchParamsSchema = z.object({
53-
autoOidcLaunch: zodBoolAsString.default("true"),
53+
autoOidcLaunch: zodBoolAsString.optional(),
5454
intent: z.enum(["login", "register"]).optional(),
5555
});
5656

@@ -66,7 +66,7 @@ export const loader = async ({ request }: Route.LoaderArgs) => {
6666
const query = parseSearchQuery(request, searchParamsSchema);
6767
const [coreDetails] = await Promise.all([getCoreDetails()]);
6868
if (
69-
coreDetails.oidcEnabled &&
69+
(coreDetails.oidcEnabled || true) &&
7070
coreDetails.localAuthDisabled &&
7171
query.autoOidcLaunch === true
7272
) {

apps/frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"react": "18.3.1",
5757
"react-dom": "18.3.1",
5858
"react-joyride": "2.9.3",
59-
"react-router": "7.2.0",
59+
"react-router": "7.3.0",
6060
"react-virtuoso": "4.12.5",
6161
"recharts": "2.15.1",
6262
"remix-utils": "8.1.1",

apps/website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"postgres": "3.4.5",
4848
"react": "18.3.1",
4949
"react-dom": "18.3.1",
50-
"react-router": "7.2.0",
50+
"react-router": "7.3.0",
5151
"remix-utils": "8.1.1",
5252
"safe-routes": "1.0.9",
5353
"sonner": "2.0.1",

libs/ts-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dayjs": "1.11.13",
99
"humanize-duration-ts": "2.1.1",
1010
"lodash": "4.17.21",
11-
"react-router": "7.2.0",
11+
"react-router": "7.3.0",
1212
"tailwind-merge": "3.0.2",
1313
"tiny-invariant": "1.3.3",
1414
"zod": "3.24.2"

yarn.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -6024,7 +6024,7 @@ __metadata:
60246024
react: "npm:18.3.1"
60256025
react-dom: "npm:18.3.1"
60266026
react-joyride: "npm:2.9.3"
6027-
react-router: "npm:7.2.0"
6027+
react-router: "npm:7.3.0"
60286028
react-router-devtools: "npm:1.1.6"
60296029
react-virtuoso: "npm:4.12.5"
60306030
recharts: "npm:2.15.1"
@@ -6100,7 +6100,7 @@ __metadata:
61006100
dayjs: "npm:1.11.13"
61016101
humanize-duration-ts: "npm:2.1.1"
61026102
lodash: "npm:4.17.21"
6103-
react-router: "npm:7.2.0"
6103+
react-router: "npm:7.3.0"
61046104
tailwind-merge: "npm:3.0.2"
61056105
tiny-invariant: "npm:1.3.3"
61066106
zod: "npm:3.24.2"
@@ -6159,7 +6159,7 @@ __metadata:
61596159
postgres: "npm:3.4.5"
61606160
react: "npm:18.3.1"
61616161
react-dom: "npm:18.3.1"
6162-
react-router: "npm:7.2.0"
6162+
react-router: "npm:7.3.0"
61636163
remix-utils: "npm:8.1.1"
61646164
safe-routes: "npm:1.0.9"
61656165
sonner: "npm:2.0.1"
@@ -13157,9 +13157,9 @@ __metadata:
1315713157
languageName: node
1315813158
linkType: hard
1315913159

13160-
"react-router@npm:7.2.0":
13161-
version: 7.2.0
13162-
resolution: "react-router@npm:7.2.0"
13160+
"react-router@npm:7.3.0":
13161+
version: 7.3.0
13162+
resolution: "react-router@npm:7.3.0"
1316313163
dependencies:
1316413164
"@types/cookie": "npm:^0.6.0"
1316513165
cookie: "npm:^1.0.1"
@@ -13171,7 +13171,7 @@ __metadata:
1317113171
peerDependenciesMeta:
1317213172
react-dom:
1317313173
optional: true
13174-
checksum: 10/2b8d51bf0787d088c1b12857a686719fa922256a8ac84045e64c98b86c5ff81a4b76d49a25e6fb9bc9f582fb0d92233207917573358a26dd40ad4e91b01bfb66
13174+
checksum: 10/f7694785f95b989e55c0ae058c36c5f523e318109aea26f4e1567a3c50dcbff769417c54451d976990c507f83499bfe7bc4ec9bea52b2fabab4e6da57d21b231
1317513175
languageName: node
1317613176
linkType: hard
1317713177

0 commit comments

Comments
 (0)