From 2c007f06e35ffee25d55b2cc0bbf84202c473dbc Mon Sep 17 00:00:00 2001 From: solidsanek Date: Sun, 19 Feb 2023 18:58:53 +0100 Subject: [PATCH] Post: remove debug logs --- .../post_status_form/post_status_form.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 2d42d8cc..f7fef499 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -459,25 +459,13 @@ const PostStatusForm = { } if (this.newStatus.status || this.newStatus.spoilerText || this.newStatus.files.length > 0 || this.newStatus.poll.length > 0) { - if(this.newStatus.status) { - console.log(this.newStatus.status) - } - if(this.newStatus.spoilerText) { - console.log(this.newStatus.spoilerText) - } - if(this.newStatus.files) { - console.log(this.newStatus.files) - } - if(this.newStatus.poll) { - console.log(this.newStatus.poll) - } - console.log('not empty?'); - draftData[draftKey] = { + draftData[draftKey] = { updatedAt: new Date(), data: this.newStatus, }; localStorage.setItem('drafts', JSON.stringify(draftData)); + } else { deleteDraft(draftKey); }