@@ -14,14 +14,6 @@ import {
1414} from './parts/settings'
1515import { updateBalances , updateCourses } from './parts/sis'
1616
17- function homescreen ( store ) {
18- store . dispatch ( loadHomescreenOrder ( ) )
19- }
20-
21- function feedbackOptOutStatus ( store ) {
22- store . dispatch ( loadFeedbackStatus ( ) )
23- }
24-
2517function loginCredentials ( store ) {
2618 loadLoginCredentials ( ) . then ( ( { username, password} = { } ) => {
2719 if ( ! username || ! password ) return
@@ -36,14 +28,6 @@ async function validateOlafCredentials(store) {
3628 store . dispatch ( validateLoginCredentials ( username , password ) )
3729}
3830
39- function loadBalances ( store ) {
40- store . dispatch ( updateBalances ( false ) )
41- }
42-
43- function loadCourses ( store ) {
44- store . dispatch ( updateCourses ( false ) )
45- }
46-
4731function netInfoIsConnected ( store ) {
4832 function updateConnectionStatus ( isConnected ) {
4933 store . dispatch ( updateOnlineStatus ( isConnected ) )
@@ -58,15 +42,15 @@ export async function init(store: {dispatch: any}) {
5842 // and those that do.
5943
6044 // kick off the parts that don't care about network
61- homescreen ( store )
62- feedbackOptOutStatus ( store )
45+ store . dispatch ( loadHomescreenOrder ( ) )
46+ store . dispatch ( loadFeedbackStatus ( ) )
6347 loginCredentials ( store )
6448
6549 // wait for our first connection check to happen
6650 await netInfoIsConnected ( store )
6751
6852 // then go do the network stuff
6953 validateOlafCredentials ( store )
70- loadBalances ( store )
71- loadCourses ( store )
54+ store . dispatch ( updateBalances ( false ) )
55+ store . dispatch ( updateCourses ( false ) )
7256}
0 commit comments