Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
fixed #158
Browse files Browse the repository at this point in the history
  • Loading branch information
tahnik committed Aug 12, 2017
1 parent 201843f commit 057d7f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/js/components/utilities/post_rant.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import rantscript from '../../consts/rantscript';
import SmartArea from '../utilities/smart_area';

import { ITEM } from '../../consts/types';

class PostRant extends Component {
constructor() {
Expand Down Expand Up @@ -31,7 +31,7 @@ class PostRant extends Component {
tags: '',
limitCrossed: null,
});
this.props.close();
this.props.open(ITEM.RANT.NAME, res.rant_id);
})
.catch(() => {
this.setState({ posting: false });
Expand Down Expand Up @@ -67,6 +67,7 @@ class PostRant extends Component {
PostRant.propTypes = {
auth: PropTypes.object.isRequired,
close: PropTypes.func.isRequired,
open: PropTypes.func.isRequired,
};

export default PostRant;

0 comments on commit 057d7f0

Please sign in to comment.