Skip to content

Commit 9d0d3da

Browse files
committed
lint fix
1 parent afbdf1b commit 9d0d3da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/apps/review/src/pages/scorecards/ViewScorecardPage/ViewScorecardPage.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ViewScorecardPage: FC = () => {
2424
[],
2525
)
2626

27-
const { scorecard } = useFetchScorecard(scorecardId)
27+
const scorecardQuery = useFetchScorecard(scorecardId)
2828

2929
return (
3030
<PageWrapper
@@ -36,24 +36,24 @@ const ViewScorecardPage: FC = () => {
3636
icon={PencilIconWrapper}
3737
className='borderButton'
3838
secondary
39-
to="edit"
39+
to='edit'
4040
>
4141
Edit Scorecard
4242
</LinkButton>
4343
)}
4444
>
4545
{
46-
scorecard && (
46+
scorecardQuery.scorecard && (
4747
<div className={styles.container}>
4848
<div className={styles.section}>
4949
<h3 className={styles.heading}>1. Scorecard Information</h3>
50-
{scorecard && <ScorecardDetails scorecard={scorecard} />}
50+
<ScorecardDetails scorecard={scorecardQuery.scorecard} />
5151
</div>
5252
{
53-
scorecard.scorecardGroups.length > 0 && (
53+
scorecardQuery.scorecard.scorecardGroups.length > 0 && (
5454
<div className={cn(styles.section, styles.evaluationStructureSection)}>
5555
<h3 className={styles.heading}>2. Evaluation Structure</h3>
56-
<ScorecardGroups groups={scorecard.scorecardGroups} />
56+
<ScorecardGroups groups={scorecardQuery.scorecard.scorecardGroups} />
5757
</div>
5858
)
5959
}

0 commit comments

Comments
 (0)