Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 7fe0f90

Browse files
author
dengjun
committed
ci:availability change
1 parent 4c7657c commit 7fe0f90

File tree

1 file changed

+7
-5
lines changed
  • src/containers/MyGigs/modals/UpdateGigProfile

1 file changed

+7
-5
lines changed

src/containers/MyGigs/modals/UpdateGigProfile/index.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ const UpdateGigProfile = ({
3636
);
3737
}, [profile, countries]);
3838

39+
const [profileEdit, setProfileEdit] = useState(
40+
profile ? _.clone(profile) : null
41+
);
42+
3943
const statusOptions = useMemo(() => {
40-
const selected = profile.status;
44+
const selected = profileEdit.status;
4145
const options = statuses.filter((s) => s !== GIG_STATUS.PLACED);
4246
return utils.createDropdownOptions(options, selected);
43-
}, [profile, statuses]);
47+
}, [profileEdit, statuses]);
48+
4449

45-
const [profileEdit, setProfileEdit] = useState(
46-
profile ? _.clone(profile) : null
47-
);
4850
const [validation, setValidation] = useState(null);
4951
const [pristine, setPristine] = useState(true);
5052

0 commit comments

Comments
 (0)