Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
alii committed Dec 27, 2023
1 parent 7b6ab61 commit 72e293e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/monzo/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ type Props =
data: {
accounts: Array<
Models.Account & {
balance?: Models.Balance;
pots?: Models.Pot[];
balance?: Models.Balance | null;
pots?: Models.Pot[] | null;
webhooks?: Array<{
id: Id<'webhook'>;
account_id: Models.Account['id'];
url: string;
}>;
}> | null;
}
>;
};
Expand Down Expand Up @@ -198,9 +198,9 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({req}) => {
}

const [balance, webhooks, pots] = await Promise.all([
monzo.getBalance(account.id),
monzo.listWebhooks(account.id),
monzo.getPots(account.id),
monzo.getBalance(account.id).catch(() => null),
monzo.listWebhooks(account.id).catch(() => null),
monzo.getPots(account.id).catch(() => null),
]);

return {
Expand Down

1 comment on commit 72e293e

@vercel
Copy link

@vercel vercel bot commented on 72e293e Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.