From 5cba7c9ed12d206c5a96a717d152889a48ed521a Mon Sep 17 00:00:00 2001 From: hole-thu Date: Tue, 30 Aug 2022 00:00:16 +0800 Subject: [PATCH] fix: clear backup after posting --- src/UserAction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);