Skip to content

Commit

Permalink
πŸ› User language sync (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
MontaGhanmy authored Nov 2, 2023
1 parent fea7697 commit fbecbab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tdrive/backend/node/src/services/console/clients/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ export class ConsoleRemoteClient implements ConsoleServiceClient {
userDTO.preference.allowTrackingPersonalInfo,
user.preferences?.allow_tracking,
);
user.preferences.language = coalesce(userDTO.preference.locale, user.preferences?.language);
if (!user.preferences.language) {
user.preferences.language = coalesce(userDTO.preference.locale, user.preferences?.language);
}
user.preferences.timezone = coalesce(userDTO.preference.timeZone, user.preferences?.timezone);
}

Expand Down

0 comments on commit fbecbab

Please sign in to comment.