mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-02-26 13:57:28 +00:00
specific error for emails that have already been invited
This commit is contained in:
@@ -67,8 +67,10 @@ module.exports = React.createClass({
|
||||
|
||||
if(this.state.submitted) {
|
||||
messageText = 'Kutsu lähetetty antamaasi sähköpostiosoitteeseen.';
|
||||
} else if(this.state.error.status === 400) {
|
||||
} else if(this.state.error.status === 400 && this.state.error.data === 'invalid_email') {
|
||||
messageText = 'Tarkasta syöttämäsi sähköpostiosoite';
|
||||
} else if(this.state.error.status === 400 && this.state.error.data === 'already_invited') {
|
||||
messageText = 'Sähköpostiosoitteeseen on jo lähetetty kutsu';
|
||||
} else {
|
||||
messageText = 'Jotain meni pieleen. Yritä hetken päästä uudelleen.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user