Skip to content

Commit

Permalink
manual
Browse files Browse the repository at this point in the history
  • Loading branch information
lulu committed May 10, 2024
1 parent cb54821 commit 8faf627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medusa-plugin-abandoned-cart",
"version": "2.0.53",
"version": "2.0.54",
"description": "Medusa plugin for abandoned cart tracking and recovery",
"author": "Lucjan Grzesik (https://github.com/luluhoc)",
"license": "MIT",
Expand Down
5 changes: 2 additions & 3 deletions src/services/abandoned-cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ export default class AbandonedCartService extends TransactionBaseService {
const cart = this.transformCart(notNullCartsPromise) as TransformedCart;

const locale = this.getCartLocale(cart);

if (
(!this.checkTypeOfOptions(this.options_) && interval) &&
this.options_.localization
this.options_.localization &&
(!this.checkTypeOfOptions(this.options_) || interval === undefined)
) {
const localeOptions = this.options_.localization[locale];

Expand Down

0 comments on commit 8faf627

Please sign in to comment.