1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-21 13:41:40 +00:00

update Login/Register Container style & fix OnlyGuest Mixin

This commit is contained in:
Rokt33r
2015-07-12 22:00:19 +09:00
parent 36eaebcbc7
commit 1d3e3f3c87
5 changed files with 22 additions and 7 deletions

View File

@@ -4,7 +4,9 @@ var OnlyGuest = {
componentDidMount: function () {
if (AuthStore.check()) {
var user = AuthStore.getUser()
console.log(user)
if (user == null) {
return
}
var planet = user.Planets.length > 0 ? user.Planets[0] : null
if (planet == null) {
this.transitionTo('user', {userName: user.name})