Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix

Steven Teye24bd015081b
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index da03d99e6e..983873c970 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -15,7 +15,6 @@ module.exports = {
useDeploymentId: true,
serverActions: true,
useDeploymentIdServerActions: true,
- optimizePackageImports: ["@dub/utils"],
},
webpack: (config, { webpack, isServer }) => {
if (isServer) {
diff --git a/apps/web/ui/layout/nav-tabs.tsx b/apps/web/ui/layout/nav-tabs.tsx
index 9bffd4667c..e4c3fbfa6d 100644
--- a/apps/web/ui/layout/nav-tabs.tsx
+++ b/apps/web/ui/layout/nav-tabs.tsx
@@ -2,6 +2,7 @@
import useDomains from "@/lib/swr/use-domains";
import useLinksCount from "@/lib/swr/use-links-count";
+import useProject from "@/lib/swr/use-project";
import useUsers from "@/lib/swr/use-users";
import { ModalContext } from "@/ui/modals/provider";
import { Badge } from "@dub/ui";
@@ -13,6 +14,7 @@ import { useContext, useMemo } from "react";
export default function NavTabs() {
const pathname = usePathname();
const { slug } = useParams() as { slug?: string };
+ const { error } = useProject();
const tabs = useMemo(() => {
if (slug) {
@@ -52,7 +54,7 @@ export default function NavTabs() {
)}
</Link>
))}
- {slug && !loading && (!verified || count === 0) && (
+ {slug && !error && !loading && (!verified || count === 0) && (
<OnboardingChecklist />
)}
</div>