MOBILE-3068 feedback: Fix offline warning shown when it shouldn't

main
Dani Palou 2019-08-29 10:37:01 +02:00
parent f4eee3c0e0
commit 3920319511
1 changed files with 5 additions and 5 deletions

View File

@ -195,14 +195,14 @@ export class AddonModFeedbackIndexComponent extends CoreCourseModuleMainActivity
} }
return this.fetchFeedbackOverviewData(this.access); return this.fetchFeedbackOverviewData(this.access);
}).then(() => { }).finally(() => {
// All data obtained, now fill the context menu. // Now fill the context menu.
this.fillContextMenu(refresh); this.fillContextMenu(refresh);
// Check if there are responses stored in offline. // Check if there are responses stored in offline.
return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id); return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id).then((hasOffline) => {
}).then((hasOffline) => { this.hasOffline = hasOffline;
this.hasOffline = hasOffline; });
}); });
} }