Skip to content

Commit

Permalink
forgot to set default name when click edit year
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerpan committed Oct 19, 2023
1 parent d2c22b8 commit abc5b37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/src/pages/RoadmapPage/Year.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const Year: FC<YearProps> = ({ yearIndex, data }) => {
const handleEditYearClick = (event: React.MouseEvent) => {
setShowAddQuarter(false); // hide any other currently displayed menu bar options
setPlaceholderYear(data.startYear); // set default year to current year
setPlaceholderName(data.name);
setShowEditYear(!showEditYear);
setEditYearTarget(event.target);
}
Expand Down

0 comments on commit abc5b37

Please sign in to comment.