Skip to content

Commit ff20b3f

Browse files
committed
check for loginState in the balancesview
1 parent 9f2d25b commit ff20b3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/views/sis/balances.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)