When adding a variant to an order, i sometimes get...
# general
r
When adding a variant to an order, i sometimes get this error: *undefined method `*' for nil:NilClass* The code that adds the variant is this:
Copy code
line_item = order.contents.add(variant, 1)
Anyone know why this happesn?