Fix for changing locale on other networks than mainnet.

fixes #253
This commit is contained in:
softsimon 2020-12-05 02:08:54 +07:00
parent 1fc1b4b86e
commit 4d54723472
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -259,6 +259,6 @@ export class DashboardComponent implements OnInit {
try {
document.cookie = `lang=${language}; expires=Thu, 18 Dec 2050 12:00:00 UTC; path=/`;
} catch (e) { }
this.document.location.href = (language === 'en' ? '/' : '/' + language);
this.document.location.href = `${language === 'en' ? '' : '/' + language}/${this.stateService.network}`;
}
}