forms: gotoHome activating previously active month
This commit is contained in:
@@ -37,7 +37,7 @@ export const BillEditForm:FC<BillEditFormProps> = ({ location, bill }) => {
|
||||
|
||||
// redirect to the main page
|
||||
const handleCancel = () => {
|
||||
gotoHome(billYear ? `/?year=${billYear}` : undefined);
|
||||
gotoHome(billYear ? `/?year=${billYear}&month=${location.yearMonth.month}` : undefined);
|
||||
};
|
||||
|
||||
const billPaid_handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
|
||||
Reference in New Issue
Block a user