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);
}).then(() => {
// All data obtained, now fill the context menu.
}).finally(() => {
// Now fill the context menu.
this.fillContextMenu(refresh);
// Check if there are responses stored in offline.
return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id);
}).then((hasOffline) => {
this.hasOffline = hasOffline;
return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id).then((hasOffline) => {
this.hasOffline = hasOffline;
});
});
}