fix(medusa-payment-stripe): adds missing undefined check (#5177)
* fix: adds undefined check * Create twelve-lamps-search.md --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
1 parent
dfa5d041c9
commit
c1b8f089e3
2 files changed
+7
-1
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
"medusa-payment-stripe": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa-payment-stripe): adds missing undefined check
|
||||||
@@ -198,7 +198,7 @@ async function capturePaymentIfNecessary({
|
|||||||
.retrieveByCartId(cartId)
|
.retrieveByCartId(cartId)
|
||||||
.catch(() => undefined)
|
.catch(() => undefined)
|
||||||
|
|
||||||
if (order?.payment_status !== "captured") {
|
if (order && order.payment_status !== "captured") {
|
||||||
await orderService
|
await orderService
|
||||||
.withTransaction(transactionManager)
|
.withTransaction(transactionManager)
|
||||||
.capturePayment(order.id)
|
.capturePayment(order.id)
|
||||||
|
|||||||
Reference in new issue
Block a user