diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 02a7049cf..27368f620 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -136,8 +136,8 @@ export class MoodleMobileApp implements OnInit { loadCustomStrings(); }); - this.eventsProvider.on(CoreEventsProvider.SITE_UPDATED, (siteId) => { - if (siteId == this.sitesProvider.getCurrentSiteId()) { + this.eventsProvider.on(CoreEventsProvider.SITE_UPDATED, (data) => { + if (data.siteId == this.sitesProvider.getCurrentSiteId()) { loadCustomStrings(); } });