forms: gotoHome activating previously active month
This commit is contained in:
@@ -19,7 +19,7 @@ export const BillDeleteForm:FC<BillDeleteFormProps> = ({ bill, location }) =>
|
||||
const [ state, dispatch ] = useFormState(handleAction, null);
|
||||
|
||||
const handleCancel = () => {
|
||||
gotoHome(`/?year=${location.yearMonth.year}`);
|
||||
gotoHome(`/?year=${location.yearMonth.year}&month=${location.yearMonth.month}`);
|
||||
};
|
||||
|
||||
return(
|
||||
|
||||
Reference in New Issue
Block a user