aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-25 21:27:37 -0300
committerLibravatar Renard 2019-09-25 21:27:37 -0300
commit52f3fa7fea2915d9db7d9e97f926ad544ac328c4 (patch)
treead2a1363ce28c776817aaf529dff7986435e501f /src
parent2e496411a387493e87087d90deb4ed5efe3c3417 (diff)
downloadbai-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.js4
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: "" });
+ }
});
}
);