Skip to content

Commit

Permalink
Compare error with null
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Sep 25, 2024
1 parent 25d9d10 commit 5498966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/fills/[[...pk]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ export default function FillPage({ params }: { params: { pk: string[] } }) {
pk={pk}
records={records}
status={
!fillData ? null : !fillData.failed && !fillData.aborted && !fillData.error
!fillData
? null
: !fillData.failed && !fillData.aborted && fillData.error !== null
}
/>
{!fillData ? <DataSkeleton /> : <FillData data={fillData} />}
Expand Down

0 comments on commit 5498966

Please sign in to comment.