Skip to content

Commit

Permalink
Do not show error panel when there is no error
Browse files Browse the repository at this point in the history
  • Loading branch information
hitochan777 committed Jul 26, 2020
1 parent 4bb5c07 commit 50c8aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AddForm.tsx
Expand Up @@ -124,7 +124,7 @@ export const AddForm: React.FC<Props> = ({
onChange={handlers.changeAttendanceType}
/>
</Form.Group>
<Message>{errorMessage}</Message>
{errorMessage && <Message>{errorMessage}</Message>}
</Form>
);
};

0 comments on commit 50c8aca

Please sign in to comment.