diff --git a/jam-ui/src/components/page/JKEditProfile.js b/jam-ui/src/components/page/JKEditProfile.js
index 9296e88e2..a81c4052f 100644
--- a/jam-ui/src/components/page/JKEditProfile.js
+++ b/jam-ui/src/components/page/JKEditProfile.js
@@ -65,11 +65,10 @@ function JKEditProfile() {
setCurrentUserLoaded(true);
fetchCurentUser().then(data => {
console.log("userData", data)
- //setUserData(data);
updateUserData(data);
fetchInstruments();
fetchGenres();
- //fetchCountries();
+ fetchCountries();
});
}
}, [currentUser]);
@@ -329,6 +328,7 @@ function JKEditProfile() {
};
const handleRegionChange = selectedOpt => {
+ if (!selectedOpt) return;
if (skipRegionChange.current) {
skipRegionChange.current = false;
return;
@@ -344,6 +344,7 @@ function JKEditProfile() {
};
const handleCityChange = selectedOpt => {
+ if (!selectedOpt) return;
const city = selectedOpt.value;
setValue('city', city);
handleChange();
@@ -464,31 +465,30 @@ function JKEditProfile() {