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 => { setEditing = editing => {
console.log('editing', editing);
this.setState({ editing }); this.setState({ editing });
}; };
@ -165,14 +164,12 @@ export class App extends React.Component {
if (this.state.user.id === this.editor.owner) { if (this.state.user.id === this.editor.owner) {
this.editor.owner = null; this.editor.owner = null;
} }
//
this.setState({ this.setState({
user: { user: DEFAULT_USER,
...DEFAULT_USER,
}
}); });
this.storeUserData(); setTimeout(this.storeUserData, 0);
}; };
render() { render() {

View file

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

View file

@ -20,7 +20,6 @@ export class Stickers {
// }; // };
createSticker = ({ latlng, sticker, angle = 2.2 }) => { createSticker = ({ latlng, sticker, angle = 2.2 }) => {
console.log('creating', latlng, sticker, angle);
const marker = new Sticker({ const marker = new Sticker({
latlng, latlng,
angle, angle,

View file

@ -3,7 +3,6 @@
*/ */
export const parseStickerAngle = ({ sticker, version }) => { export const parseStickerAngle = ({ sticker, version }) => {
console.log('stick', sticker, version);
return sticker && version && parseInt(version, 10) === 2 return sticker && version && parseInt(version, 10) === 2
? parseFloat(sticker.angle) ? parseFloat(sticker.angle)
: parseFloat(sticker.ang - 3.14); : parseFloat(sticker.ang - 3.14);