Skip to content

Commit

Permalink
Fix build errors (#14)
Browse files Browse the repository at this point in the history
Adjust merge and fix build
  • Loading branch information
MaximeDan authored Jun 24, 2024
1 parent 7142125 commit d56f756
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 171 deletions.
48 changes: 0 additions & 48 deletions __test__/auth/registerSchema.test.ts

This file was deleted.

240 changes: 120 additions & 120 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/apiClient/registerUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const registerUserApi = async (data: {
username: string;
name: string;
lastName: string;
dateOfBirth?: Date;
dateOfBirth?: string;
}) => {
const response = await fetch("/api/auth/register", {
method: "POST",
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const Register = () => {
<PopoverContent className="w-auto p-0" align="start">
<Calendar
mode="single"
selected={field.value}
selected={field.value ? new Date(field.value) : undefined}
onSelect={field.onChange}
disabled={(date) =>
date > new Date() || date < new Date("1900-01-01")
Expand Down
2 changes: 1 addition & 1 deletion src/types/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export type RegisterUser = {
username: string;
name: string;
lastName: string;
dateOfBirth: Date;
dateOfBirth: string;
};

0 comments on commit d56f756

Please sign in to comment.