|
|
@ -230,6 +230,8 @@ export default class TPMchallengesnew extends Component {
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
this.props.showSnackbar(response.data.messages);
|
|
|
|
this.props.showSnackbar(response.data.messages);
|
|
|
|
if (response.data.status === 1) {
|
|
|
|
if (response.data.status === 1) {
|
|
|
|
|
|
|
|
$("html").animate({ scrollTop: 0 })
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
setopen: true,
|
|
|
|
setopen: true,
|
|
|
|
tab2url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=2",
|
|
|
|
tab2url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=2",
|
|
|
|