From 6fdcb0a86d256c732af91975b3ae31d98158f7a9 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Thu, 17 Apr 2025 18:04:48 +0200 Subject: [PATCH] fix the fix --- backend/src/apis/gms/model/GmsUser.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/apis/gms/model/GmsUser.ts b/backend/src/apis/gms/model/GmsUser.ts index 6fbe13cad..f97726772 100644 --- a/backend/src/apis/gms/model/GmsUser.ts +++ b/backend/src/apis/gms/model/GmsUser.ts @@ -22,10 +22,13 @@ export class GmsUser { this.lastName = ln !== '' ? ln : null // getGmsLastName(user) this.alias = pnLogic.getPublicName(user.gmsPublishName as PublishNameType) this.type = user.gmsPublishLocation // GmsPublishLocationType.GMS_LOCATION_TYPE_RANDOM + this.location = user.location if ((this.type as GmsPublishLocationType) === GmsPublishLocationType.GMS_LOCATION_TYPE_RANDOM) { this.type = GmsPublishLocationType.GMS_LOCATION_TYPE_APPROXIMATE } - this.location = user.location + if (!this.location) { + this.type = GmsPublishLocationType.GMS_LOCATION_TYPE_RANDOM + } } id: number