From 9b9dbe30aaea1ad8fea56f69416f3e483bd6550d Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 2 Aug 2018 10:38:39 +0200 Subject: [PATCH] MOBILE-2520 lang: Fix login twice for custom strings to load --- src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } });