Skip to content

Commit 8c1dc2f

Browse files
committed
fix: homeCountryCode can not be null
1 parent 455a5a1 commit 8c1dc2f

File tree

1 file changed

+4
-0
lines changed
  • src/shared/components/Settings/Profile/BasicInfo

1 file changed

+4
-0
lines changed

src/shared/components/Settings/Profile/BasicInfo/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ export default class BasicInfo extends ConsentComponent {
241241
}
242242
}
243243

244+
if (newProfileInfo.homeCountryCode == null) {
245+
delete newProfileInfo.homeCountryCode;
246+
}
247+
244248
const updateProfileData = {
245249
...newProfileInfo,
246250
};

0 commit comments

Comments
 (0)