mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
fix(vendure): Fix TS compiler error
This commit is contained in:
parent
3c22b10635
commit
56432bf067
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user