File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class BalancesView extends React.Component {
3030 print : ?number ,
3131 weeklyMeals : ?number ,
3232 dailyMeals : ?number ,
33- credentialsValid : boolean ,
33+ loginState : LoginState ,
3434 message : ?string ,
3535
3636 updateBalances : boolean => any ,
@@ -121,7 +121,7 @@ class BalancesView extends React.Component {
121121 </ View >
122122 </ Section >
123123
124- { ! this . props . credentialsValid || this . props . message
124+ { this . props . loginState !== 'logged-in' || this . props . message
125125 ? < Section footer = "You'll need to log in again so we can update these numbers." >
126126 { ! this . props . credentialsValid
127127 ? < Cell
@@ -152,7 +152,7 @@ function mapStateToProps(state) {
152152 dailyMeals : state . sis . balances . daily ,
153153 message : state . sis . balances . message ,
154154
155- credentialsValid : state . settings . credentials . valid ,
155+ loginState : state . settings . credentials . state ,
156156 }
157157}
158158
You can’t perform that action at this time.
0 commit comments