Skip to content

Commit

Permalink
fix: Type error in GetPaymentRequestDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Apr 17, 2024
1 parent c1e0944 commit 5bf9d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.planx.uk/modules/pay/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ interface GetPaymentRequestDetails {
slug: string;
};
};
passport: Passport;
};
passport: Passport;
} | null;
}

Expand Down Expand Up @@ -99,7 +99,7 @@ export async function fetchPaymentRequestDetails(
if (paymentAmount) req.params.paymentAmount = paymentAmount;

res.locals.govPayMetadata = paymentRequest.govPayMetadata;
res.locals.passport = paymentRequest.passport;
res.locals.passport = paymentRequest.session.passport;

next();
}
Expand Down

0 comments on commit 5bf9d4f

Please sign in to comment.