MOBILE-2520 lang: Fix login twice for custom strings to load
parent
e6c5607463
commit
9b9dbe30aa
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue