Skip to content

Commit 5a1a325

Browse files
committed
fixed error messages for signup form
1 parent 14eaaf7 commit 5a1a325

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/FormError.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const FormError = (props) => {
1919
{type === 'required' && 'This is required'}
2020
{type === 'validate' && 'Passwords do not match'}
2121
{type === 'emptyDescription' && 'Description cannot be empty'}
22+
{message !== null && message}
2223
</div>
2324
)}
2425
</div>

0 commit comments

Comments
 (0)