Skip to content

Commit

Permalink
[#362] fix display data only for one type of GA
Browse files Browse the repository at this point in the history
  • Loading branch information
Sworzen1 authored and pmbinapps committed Mar 7, 2024
1 parent 0f89f67 commit f260468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const CreateGovernanceActionForm = ({
setStep,
}: ChooseGovernanceActionTypeProps) => {
const { t } = useTranslation();
const { control, errors, getValues, register, watch } =
const { control, errors, getValues, register, reset, watch } =
useCreateGovernanceActionForm();
const {
append,
Expand All @@ -48,6 +48,7 @@ export const CreateGovernanceActionForm = ({
};

const onClickBack = () => {
reset();
setStep(2);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const useCreateGovernanceActionForm = () => {
setValue,
watch,
register,
reset,
} = useFormContext<createGovernanceActionValues>();

const onSubmit = useCallback(async () => {
Expand All @@ -44,5 +45,6 @@ export const useCreateGovernanceActionForm = () => {
submitForm: handleSubmit(onSubmit),
watch,
register,
reset,
};
};

0 comments on commit f260468

Please sign in to comment.