From 24186c044762e6e5fe01fcc68369b68485e85632 Mon Sep 17 00:00:00 2001 From: muerwre Date: Mon, 3 Sep 2018 16:41:24 +0700 Subject: [PATCH] fixed logout --- src/containers/App.jsx | 9 +++------ src/modules/Editor.js | 2 -- src/modules/Stickers.js | 1 - src/utils/import.js | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/containers/App.jsx b/src/containers/App.jsx index 3848f8e..acd8da3 100644 --- a/src/containers/App.jsx +++ b/src/containers/App.jsx @@ -99,7 +99,6 @@ export class App extends React.Component { }; setEditing = editing => { - console.log('editing', editing); this.setState({ editing }); }; @@ -165,14 +164,12 @@ export class App extends React.Component { if (this.state.user.id === this.editor.owner) { this.editor.owner = null; } - + // this.setState({ - user: { - ...DEFAULT_USER, - } + user: DEFAULT_USER, }); - this.storeUserData(); + setTimeout(this.storeUserData, 0); }; render() { diff --git a/src/modules/Editor.js b/src/modules/Editor.js index f6f5159..c3c0c9e 100644 --- a/src/modules/Editor.js +++ b/src/modules/Editor.js @@ -181,8 +181,6 @@ export class Editor { this.setTitle(title || ''); this.setAddress(address || ''); - console.log('setting address', address); - if (route) { this.poly.setPoints(route); } diff --git a/src/modules/Stickers.js b/src/modules/Stickers.js index e180b08..cb8a5ec 100644 --- a/src/modules/Stickers.js +++ b/src/modules/Stickers.js @@ -20,7 +20,6 @@ export class Stickers { // }; createSticker = ({ latlng, sticker, angle = 2.2 }) => { - console.log('creating', latlng, sticker, angle); const marker = new Sticker({ latlng, angle, diff --git a/src/utils/import.js b/src/utils/import.js index e7cb1f0..d5a47e0 100644 --- a/src/utils/import.js +++ b/src/utils/import.js @@ -3,7 +3,6 @@ */ export const parseStickerAngle = ({ sticker, version }) => { - console.log('stick', sticker, version); return sticker && version && parseInt(version, 10) === 2 ? parseFloat(sticker.angle) : parseFloat(sticker.ang - 3.14);