From 1485155fc8c8824628e4112aa04ff081d4fd707e Mon Sep 17 00:00:00 2001 From: hsuifang Date: Mon, 18 Mar 2024 00:24:14 +0800 Subject: [PATCH] fix: Fix logical of location property in useEditProfile --- components/Profile/Edit/useEditProfile.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Profile/Edit/useEditProfile.jsx b/components/Profile/Edit/useEditProfile.jsx index c63ef380..897c8945 100644 --- a/components/Profile/Edit/useEditProfile.jsx +++ b/components/Profile/Edit/useEditProfile.jsx @@ -164,7 +164,8 @@ const useEditProfile = () => { }, wantToDoList, educationStage, - location: `${country}@${city}@${district}`, + location: + country === '國外' ? country : [country, city, district].join('@'), tagList, selfIntroduction, share,