Compare commits

..

1 commit

Author SHA1 Message Date
cb862363e9 chore(deps): update devdependencies (non-major)
Some checks failed
renovate/artifacts Artifact file update failure
2025-01-28 08:02:44 +00:00
3 changed files with 0 additions and 8 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -6,6 +6,4 @@ export interface Hotel {
imageUrl: string;
rating: number;
tags: Array<string>;
email?: string;
phone?: string;
}

View file

@ -127,12 +127,6 @@ export class NewHotelComponent {
rating: this.hotelForm.get('rating')?.value,
tags: this.hotelForm.get('tags')?.value,
};
if (this.hotelForm.get('contactType')?.value == 'Email') {
hotel.email = this.hotelForm.get('email')?.value;
} else {
hotel.phone = this.hotelForm.get('phone')?.value;
}
this.http.post('/api/hotels/', hotel).subscribe();
this.router.navigate(['/']);
}