Skip to content

Commit

Permalink
handled scenario where no draws exist
Browse files Browse the repository at this point in the history
  • Loading branch information
CluEleSsUK committed Nov 27, 2023
1 parent 66816fa commit ed5d5f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/app/[lang]/[country]/(website)/selection/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { BaseContainer, Typography } from '@socialincome/ui';
export default async function Page(props: DefaultPageProps) {
const translator = await Translator.getInstance({ language: props.params.lang, namespaces: 'website-selection' });

const futureDraws = await loadFutureDraws();
const pastDraws = await loadPastDraws();
const futureDraws = await loadFutureDraws().catch(_ => []);
const pastDraws = await loadPastDraws().catch(_ => []);

return (
<BaseContainer className="bg-base-blue min-h-screen">
Expand Down

0 comments on commit ed5d5f6

Please sign in to comment.