Use error message from claim code endpoint

This commit is contained in:
Alex Liebowitz 2016-07-22 23:46:37 -04:00
parent 1e026bebe4
commit fe66cc502c
2 changed files with 1 additions and 1 deletions

BIN
dist.zip

Binary file not shown.

View file

@ -44,7 +44,7 @@ var ClaimCodePage = React.createClass({
// Send them to "landing" instead of "home" (home will just trigger the message all over again until the credits arrive)
window.location = '?landing';
} else {
alert("You've entered an invalid code, or one that's already been claimed. Please check your code and try again.");
alert(response.reason);
this.setState({
submitting: false
});