Merge pull request #1458 from dpalou/MOBILE-2520

MOBILE-2520 lang: Fix login twice for custom strings to load
main
Juan Leyva 2018-08-22 10:50:55 +01:00 committed by GitHub
commit bfcbbbd965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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