Skip to content

Commit

Permalink
feat: Added condition for showing code-result error (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Sep 1, 2023
2 parents a688fc9 + 115541c commit 2f27ea2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/components/imports/validator/Validator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ export function Validator({ templateId }: ValidatorProps) {
/>
)}
/>
{!testCodeResult?.passed && <Text color="red">It seems there is some issues with code!</Text>}
{testCodeResult && !testCodeResult.passed && (
<Text color="red">It seems there is some issues with code!</Text>
)}
</div>
<div style={{ width: '20%', display: 'flex', flexDirection: 'column', gap: '5' }}>
<VarLabel label="System Variables">
Expand Down

0 comments on commit 2f27ea2

Please sign in to comment.