File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -127,10 +127,8 @@ function getProject(){
127
127
}
128
128
//load initial scrum subject
129
129
function scrumSubjectLoaded ( ) {
130
- if ( ! enableToggle )
131
- return ;
132
-
133
- var name = githubUserData . name || githubUsername ;
130
+ if ( ! enableToggle ) return ;
131
+ var name = githubUserData . name || githubUsername ;
134
132
var project = getProject ( ) ;
135
133
var curDate = new Date ( ) ;
136
134
var year = curDate . getFullYear ( ) . toString ( ) ;
@@ -274,17 +272,17 @@ var intervalSubject = setInterval(function(){
274
272
var scrumSubject0 = document . getElementById ( "p-s-0" ) ;
275
273
var scrumSubject1 = document . getElementById ( "p-s-1" ) ;
276
274
var scrumSubject2 = document . getElementById ( "p-s-2" ) ;
277
- if ( scrumSubject0 ) {
275
+ if ( scrumSubject0 && githubUserData ) {
278
276
clearInterval ( intervalSubject ) ;
279
277
scrumSubject = document . getElementById ( "p-s-0" ) ;
280
278
scrumSubjectLoaded ( ) ;
281
279
}
282
- else if ( scrumSubject1 ) {
280
+ else if ( scrumSubject1 && githubUserData ) {
283
281
clearInterval ( intervalSubject ) ;
284
282
scrumSubject = document . getElementById ( "p-s-1" ) ;
285
283
scrumSubjectLoaded ( ) ;
286
284
}
287
- else if ( scrumSubject2 ) {
285
+ else if ( scrumSubject2 && githubUserData ) {
288
286
clearInterval ( intervalSubject ) ;
289
287
scrumSubject = document . getElementById ( "p-s-2" ) ;
290
288
scrumSubjectLoaded ( ) ;
You can’t perform that action at this time.
0 commit comments