Skip to content

Commit

Permalink
fixed incorrect type
Browse files Browse the repository at this point in the history
  • Loading branch information
totono committed Apr 1, 2023
1 parent 926fa5a commit db8b9d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/elements/Input/taskRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { InputState } from "./InputState";
export const taskRegister = async (task:InputState) => {
//const date = task.limit_date?.format("YYYY/MM/DD") ?? null;
//const time = task.limit_time?.format("HH:mm") ?? null;
const text = task.text === null ? "" : task.text;
const text = task.text == null ? "" : task.text;

const res: Model = await taskCommand.create(
task.title,
text,
null,
(task.limit_date)?.toString() ?? null,
(task.limit_time)?.toString() ?? null,
undefined,
(task.limit_date)?.toString() ?? undefined,
(task.limit_time)?.toString() ?? undefined,
);
return res;
}

0 comments on commit db8b9d3

Please sign in to comment.