diff --git a/src/app/app.component.ts b/src/app/app.component.ts index c0fa54605..417cd86ec 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -139,8 +139,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(); } });