diff options
author | Renard | 2019-09-25 21:27:37 -0300 |
---|---|---|
committer | Renard | 2019-09-25 21:27:37 -0300 |
commit | 52f3fa7fea2915d9db7d9e97f926ad544ac328c4 (patch) | |
tree | ad2a1363ce28c776817aaf529dff7986435e501f /src | |
parent | 2e496411a387493e87087d90deb4ed5efe3c3417 (diff) | |
download | bai-client-52f3fa7fea2915d9db7d9e97f926ad544ac328c4.tar.gz bai-client-52f3fa7fea2915d9db7d9e97f926ad544ac328c4.tar.xz bai-client-52f3fa7fea2915d9db7d9e97f926ad544ac328c4.zip |
Limpiar mensaje en suceso
Diffstat (limited to 'src')
-rw-r--r-- | src/ReplyForm.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ReplyForm.js b/src/ReplyForm.js index 33b33a0..48be8e8 100644 --- a/src/ReplyForm.js +++ b/src/ReplyForm.js @@ -73,7 +73,9 @@ class ReplyForm extends Component { return response.json(); }) .then(resource => { - this.setState({ replyRes: resource, message: "" }); + if (resource.state === "success") { + this.setState({ replyRes: resource, message: "" }); + } }); } ); |