Skip to content

Commit

Permalink
Check source and target languages
Browse files Browse the repository at this point in the history
  • Loading branch information
suminb committed Apr 30, 2018
1 parent d0b82d0 commit 579ac29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
if (!this.target) {
this.errors.push('Target language must be specified');
}
if (this.source == this.target) {
this.errors.push('Target and source langauges must be different')
}
event.preventDefault();

return !this.errors;
Expand Down

0 comments on commit 579ac29

Please sign in to comment.