MOBILE-2520 lang: Fix login twice for custom strings to load

main
Dani Palou 2018-08-02 10:38:39 +02:00
parent e6c5607463
commit 9b9dbe30aa
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
});