Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix misspellings.

Sebastian Palmaff1e8d6f9d36
diff --git a/api/app/models/spree/api/webhooks/stock_item_decorator.rb b/api/app/models/spree/api/webhooks/stock_item_decorator.rb
index 4de8c59bec..fd3c99f203 100644
--- a/api/app/models/spree/api/webhooks/stock_item_decorator.rb
+++ b/api/app/models/spree/api/webhooks/stock_item_decorator.rb
@@ -20,7 +20,7 @@ module Spree
def emits_webhook_event_on_create?(variant, was_out_of_stock)
was_out_of_stock && variant.in_stock? &&
- # rewritting `variant.backorderable?` as is currently being cached
+ # rewriting `variant.backorderable?` as is currently being cached
variant.stock_items.with_active_stock_location.any?(&:backorderable)
end