diff --git a/src/UserAction.js b/src/UserAction.js index 24a20be..5ae04a6 100644 --- a/src/UserAction.js +++ b/src/UserAction.js @@ -592,13 +592,13 @@ export class PostForm extends Component { throw new Error(json.msg); } - window.CW_BACKUP = ''; - window.POLL_BACKUP = null; this.setState( { loading_status: 'done', text: '', preview: false, + cw: null, + has_poll: false, }, () => { this.area_ref.current.clear_and_then(this.props.on_complete);