Skip to content

Commit

Permalink
style: Changed color of finish button
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkoelle committed Oct 29, 2020
1 parent ca44e47 commit 1acebe6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/features/correction/CorrectionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,17 @@ export default function CorrectionView(props: any) {
<Grid item>
<Tooltip title="Mark as done and next correction">
<span>
<Button color="primary" onClick={onNext} variant="contained">
<Button
color={
index + 1 === corrections.length &&
corrections.find((c, i) => i !== index && !c.rating_done) ===
undefined
? 'secondary'
: 'primary'
}
onClick={onNext}
variant="contained"
>
{index + 1 === corrections.length &&
corrections.find((c, i) => i !== index && !c.rating_done) ===
undefined ? (
Expand Down

0 comments on commit 1acebe6

Please sign in to comment.