Skip to content

Commit

Permalink
fix: add fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 2, 2023
1 parent 2d2f1d6 commit 83631d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/client/src/pages/business/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ export default function BusinessPage(props: GetBusinessesData) {
);
}

export const getServerSideProps: GetServerSideProps = async ({ locale, req }) => {
export const getServerSideProps: GetServerSideProps<GetBusinessesData> = async ({
locale,
req,
}) => {
const user = await getSessionUser(req);
const [data] = await requestAll(req, [
["/businesses", { businesses: [], joinableBusinesses: [] }],
["/businesses", { ownedBusinesses: [], joinedBusinesses: [], joinableBusinesses: [] }],
]);

return {
Expand Down

0 comments on commit 83631d4

Please sign in to comment.