Merged in fix/getProfile (pull request #2950)

Fix/getProfile

* fix(mypages): do not fetch SAS data on overview page and use correct mfa value when masking personal data

* Merge branch 'master' into fix/getProfile

* feat(profile): revert and dont mask data :O


Approved-by: Anton Gunnarsson
This commit is contained in:
Linus Flood
2025-10-10 10:42:23 +00:00
parent ddbc4a063d
commit 1668baf04b
2 changed files with 17 additions and 41 deletions

View File

@@ -5,7 +5,7 @@ import { getFriendsMembership } from "../helpers"
import type { User } from "../../../types/user"
export function parsedUser(data: User, isMFA: boolean) {
export function parsedUser(data: User, maskValues: boolean) {
const country = countries.find((c) => c.code === data.address?.countryCode)
const user = {
@@ -31,7 +31,7 @@ export function parsedUser(data: User, isMFA: boolean) {
promotions: data.promotions || null,
} satisfies User
if (!isMFA) {
if (maskValues) {
if (user.address.city) {
user.address.city = maskValue.text(user.address.city)
}