Skip to content

Commit 69efb65

Browse files
committed
refactor: remove scoreboard in error throwing conndition
1 parent 824db64 commit 69efb65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/communities/[slug]/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const getServerSideProps = wrapper.getServerSideProps((store) => async ({
5151
store.dispatch(fetchAllScoreboards({ slug, locale: locale || "en" })),
5252
serverSideTranslations(locale as string),
5353
]);
54-
if (!community || !challenges || !scoreboard) throw new NotFoundError();
54+
if (!community || !challenges) throw new NotFoundError();
5555
return {
5656
props: {
5757
community,

0 commit comments

Comments
 (0)