Skip to content

Commit

Permalink
WIP: We dont know the right dato format
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperbirch1 committed Feb 9, 2024
1 parent 2a1354a commit 40f5360
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/reservation/ReservationModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,23 @@ export const ReservationModalBody = ({

if (reservablePidsFromAnotherLibrary?.length && patron) {
const { patronId, name, emailAddress, preferredPickupBranch } = patron;
console.log("🚀 ~ saveReservation ~ selectedInterest:", selectedInterest);

Check warning on line 182 in src/components/reservation/ReservationModalBody.tsx

View workflow job for this annotation

GitHub Actions / Lint .js and .jsx

Unexpected console statement
console.log(

Check warning on line 183 in src/components/reservation/ReservationModalBody.tsx

View workflow job for this annotation

GitHub Actions / Lint .js and .jsx

Unexpected console statement
"🚀 ~ saveReservation ~ defaultInterestDaysForOpenOrder:",
defaultInterestDaysForOpenOrder
);
// Save reservation to open order.

mutateOpenOrder(
{
input: {
pids: [...reservablePidsFromAnotherLibrary],
pickUpBranch: selectedBranch
? removePrefixFromBranchId(selectedBranch)
: removePrefixFromBranchId(preferredPickupBranch),
expires:
selectedInterest?.toString() ||
defaultInterestDaysForOpenOrder.toString(),
expires: getFutureDateString(
Number(selectedInterest ?? defaultInterestDaysForOpenOrder)
),
userParameters: {
userId: patronId.toString(),
userName: name,
Expand Down

0 comments on commit 40f5360

Please sign in to comment.