fix(vendure): Fix TS compiler error

This commit is contained in:
Michael Bromley 2022-08-11 14:25:22 +02:00
parent 3c22b10635
commit 56432bf067

View File

@ -76,7 +76,7 @@ export const handler: MutationHook<SubmitCheckoutHook> = {
addPaymentToOrderResultType === 'PaymentDeclinedError' ||
addPaymentToOrderResultType === 'PaymentFailedError'
) {
throw new CommerceError(paymentResponse.addPaymentToOrder)
throw new CommerceError(paymentResponse.addPaymentToOrder as any)
} else {
throw new CommerceError({
message: 'Something went wrong with Payment request',