Skip to content

Commit

Permalink
CB-5074 fix: temporary fix of setting undefined as locale (#3139)
Browse files Browse the repository at this point in the history
Co-authored-by: Evgenia <[email protected]>
Co-authored-by: sergeyteleshev <[email protected]>
  • Loading branch information
3 people authored Dec 17, 2024
1 parent 71e03c7 commit 855d591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/packages/core-root/src/SessionResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export class SessionResource extends CachedDataResource<SessionState | null> {

async changeLanguage(locale: string): Promise<void> {
await this.load();
if (this.data?.locale === locale) {
//TODO we check "!locale" because of the bug described in CB-6048, should be removed when fixed
if (this.data?.locale === locale || !locale) {
return;
}
await this.graphQLService.sdk.changeSessionLanguage({ locale });
Expand Down

0 comments on commit 855d591

Please sign in to comment.