Skip to content

Commit ca4f6fb

Browse files
committed
address code review comments
1 parent 8eece65 commit ca4f6fb

File tree

1 file changed

+5
-2
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/wallets/sponsored-gas

1 file changed

+5
-2
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/wallets/sponsored-gas/page.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { notFound, redirect } from "next/navigation";
1+
import { redirect } from "next/navigation";
22
import type { SearchParams } from "nuqs/server";
33
import { getUserOpUsage } from "@/api/analytics";
44
import { getAuthToken } from "@/api/auth-token";
@@ -9,6 +9,7 @@ import {
99
type Range,
1010
} from "@/components/analytics/date-range-selector";
1111
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
12+
import { loginRedirect } from "@/utils/redirects";
1213
import { AccountAbstractionSummary } from "../../account-abstraction/AccountAbstractionAnalytics/AccountAbstractionSummary";
1314
import { SmartWalletsBillingAlert } from "../../account-abstraction/Alerts";
1415
import { AccountAbstractionAnalytics } from "../../account-abstraction/aa-analytics";
@@ -27,7 +28,9 @@ export default async function Page(props: {
2728
]);
2829

2930
if (!authToken) {
30-
notFound();
31+
loginRedirect(
32+
`/team/${params.team_slug}/${params.project_slug}/wallets/sponsored-gas`,
33+
);
3134
}
3235

3336
const [team, project] = await Promise.all([

0 commit comments

Comments
 (0)