refactoring: changing param list of a fn
This commit is contained in:
@@ -24,7 +24,7 @@ export const LocationEditForm:FC<LocationEditFormProps> = ({ location, yearMonth
|
||||
|
||||
// redirect to the main page
|
||||
const handleCancel = () => {
|
||||
gotoHome(location ? `/?year=${location?.yearMonth?.year}&month=${location?.yearMonth?.month}` : undefined);
|
||||
if(location) gotoHome(location?.yearMonth);
|
||||
};
|
||||
|
||||
return(
|
||||
|
||||
Reference in New Issue
Block a user