Skip to content

Commit 4265224

Browse files
committed
check for isLoggedIn when loading financials
1 parent 1e4da02 commit 4265224

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/financials.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
api,
44
loadLoginCredentials,
55
sisLogin,
6+
isLoggedIn,
67
} from '../lib/login'
78
import { AsyncStorage, NetInfo } from 'react-native'
89

@@ -52,8 +53,9 @@ async function getSisFinancialsPage() {
5253
}
5354

5455
async function getFinancialDataFromServer(): Promise<FinancialDataShapeType> {
55-
let {username, password} = await loadLoginCredentials()
56-
let {result} = await sisLogin(username, password)
56+
// let {username, password} = await loadLoginCredentials()
57+
// let {result} = await sisLogin(username, password)
58+
let result = await isLoggedIn()
5759
if (!result) {
5860
return {flex: null, ole: null, print: null}
5961
}

0 commit comments

Comments
 (0)