Skip to content

Commit

Permalink
fix: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 28, 2023
1 parent fbef585 commit ff7e1aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/dashboard/bulk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import { useUser } from "@/util/useUser";
import { ENABLE_BULK } from "@/util/helpers";

export default function Bulk(): React.ReactElement {
if (ENABLE_BULK === 0) {
throw new Error("Bulk is disabled");
}

const router = useRouter();
const { user, userFinishedLoading, subscription } = useUser();

Expand All @@ -20,6 +16,10 @@ export default function Bulk(): React.ReactElement {
}
}, [router, userFinishedLoading, user]);

if (ENABLE_BULK === 0) {
return <p>Bulk is disabled</p>;
}

if (!user || !subscription) {
return (
<Page>
Expand Down

0 comments on commit ff7e1aa

Please sign in to comment.