fixed logout

This commit is contained in:
muerwre 2018-09-03 16:41:24 +07:00
parent ad04704c3e
commit 24186c0447
4 changed files with 3 additions and 10 deletions

View file

@ -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() {

View file

@ -181,8 +181,6 @@ export class Editor {
this.setTitle(title || '');
this.setAddress(address || '');
console.log('setting address', address);
if (route) {
this.poly.setPoints(route);
}

View file

@ -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,

View file

@ -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);