//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"
|
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;
|
||||||
|
|
Loading…
Reference in a new issue