We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be24fa commit 63b909dCopy full SHA for 63b909d
ecommerce/processes/lib/processes/three_plus_one_free.rb
@@ -45,9 +45,8 @@ def apply(event)
45
end
46
47
def act
48
- return if state.free_product == state.eligible_free_product
49
-
50
case [state.free_product, state.eligible_free_product]
+ in [the_same_product, ^the_same_product]
51
in [nil, new_free_product]
52
make_new_product_for_free(new_free_product)
53
in [old_free_product, *]
0 commit comments