//fix parse in NewWeeklyReport
This commit is contained in:
parent
ab313551c9
commit
63fd2e9b6f
1 changed files with 1 additions and 2 deletions
|
@ -54,8 +54,7 @@ export default function NewWeeklyReport(): JSX.Element {
|
|||
type="week"
|
||||
placeholder="Week"
|
||||
onChange={(e) => {
|
||||
const weekNumber = parseInt(e.target.value.split("-W")[1]);
|
||||
setWeek(weekNumber);
|
||||
setWeek(parseInt(e.target.value));
|
||||
}}
|
||||
onKeyDown={(event) => {
|
||||
const keyValue = event.key;
|
||||
|
|
Loading…
Reference in a new issue