Skip to content

Commit

Permalink
[desk-tool] Count both errors and warnings when showing validation ma…
Browse files Browse the repository at this point in the history
…rker count
  • Loading branch information
rexxars committed Feb 19, 2020
1 parent edb4250 commit e44e405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/desk-tool/src/pane/Editor/Validation.tsx
Expand Up @@ -53,13 +53,13 @@ export function Validation(props: ValidationProps) {
}
>
<Button
color="danger"
color={errors.length > 0 ? 'danger' : 'warning'}
bleed
icon={WarningIcon}
padding="small"
onClick={onToggleValidationResults}
>
{errors.length}
{errors.length + warnings.length}
<span style={{paddingLeft: '0.5em', display: 'flex'}}>
<ChevronDown />
</span>
Expand Down

0 comments on commit e44e405

Please sign in to comment.