Skip to content

Commit

Permalink
Fix unexpected error on pages with getServerSideProps
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavlrsn committed Apr 10, 2024
1 parent 60c300c commit 51848c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ export default function TransactionsPage(props) {
const account = data?.account;
const accountType = account?.type;
const transactions = data?.transactions;

console.log({ loading, data, error, props });

Check failure on line 244 in pages/transactions.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
return <div>{JSON.stringify({ loading, data, error })}</div>;
if (!loading) {

Check failure on line 246 in pages/transactions.tsx

View workflow job for this annotation

GitHub Actions / lint

Unreachable code
if (!account) {
return <ErrorPage data={data} error={error || transactionsPageQueryHelper.getSSRErrorFromPageProps(props)} />;
Expand Down

0 comments on commit 51848c0

Please sign in to comment.