Skip to content

Crashes if there's a product with no master price #30

Open
@mntmn

Description

@mntmn

The plugin crashes when accessing the feed with invalid value for BigDecimal(): "" if there are products where product.price is nil, because there's no nil check here:

      def price(product)
        ::Spree::Money.new(product.price).money.format(symbol: false, with_currency: true)
      end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions