mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 23:16: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 === 'PaymentDeclinedError' ||
|
||||||
addPaymentToOrderResultType === 'PaymentFailedError'
|
addPaymentToOrderResultType === 'PaymentFailedError'
|
||||||
) {
|
) {
|
||||||
throw new CommerceError(paymentResponse.addPaymentToOrder)
|
throw new CommerceError(paymentResponse.addPaymentToOrder as any)
|
||||||
} else {
|
} else {
|
||||||
throw new CommerceError({
|
throw new CommerceError({
|
||||||
message: 'Something went wrong with Payment request',
|
message: 'Something went wrong with Payment request',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user