Skip to content

Commit

Permalink
fix: don't change year/period if already selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusvrs committed Oct 21, 2024
1 parent ad6072d commit bf6e342
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function Form(props: FormPropsType) {
<span className="text-xl font-semibold">Ano/Período</span>

<Select
value={formData.year && formData.period ? `${formData.year}/${formData.period}` : undefined}
onValueChange={(value) => {
handleYearAndPeriodChange(value);
}}
Expand Down

0 comments on commit bf6e342

Please sign in to comment.