//fix parse in NewWeeklyReport

This commit is contained in:
Johanna 2024-03-19 21:47:16 +01:00
parent ab313551c9
commit 63fd2e9b6f

View file

@ -54,8 +54,7 @@ export default function NewWeeklyReport(): JSX.Element {
type="week" type="week"
placeholder="Week" placeholder="Week"
onChange={(e) => { onChange={(e) => {
const weekNumber = parseInt(e.target.value.split("-W")[1]); setWeek(parseInt(e.target.value));
setWeek(weekNumber);
}} }}
onKeyDown={(event) => { onKeyDown={(event) => {
const keyValue = event.key; const keyValue = event.key;