Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbate19 committed Oct 13, 2024
1 parent 2e23cf5 commit e383910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/components/EditCarButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default defineComponent({
this.returnTime,
this.maxCapacity,
this.riders,
eventStore.selectedEventCars!.filter((car) => car.id != this.car!.id)
eventStore.selectedEventCars!.filter((car) => car.id !== this.car!.id)
);
if (validate.length != 0) {
validate.forEach((issue) => popupStore.addPopup(PopupType.Danger, issue));
Expand Down Expand Up @@ -151,7 +151,7 @@ export default defineComponent({
popupStore.addPopup(PopupType.Danger, `Failed to Edit Car (${response.status})`);
return;
}
const car = eventStore.selectedEvent?.cars?.find((car) => car.id == this.car!.id);
const car = eventStore.selectedEvent?.cars?.find((car) => car.id === this.car!.id);
car!.departureTime = new Date(this.departureTime!);
car!.returnTime = new Date(this.returnTime!);
car!.maxCapacity = this.maxCapacity!;
Expand Down

0 comments on commit e383910

Please sign in to comment.