Skip to content

fix(plugin-ecommerce): render 0 prices in PriceCell#15903

Open
naaa760 wants to merge 1 commit intopayloadcms:mainfrom
naaa760:fix/plg-pri-cell-trt-set
Open

fix(plugin-ecommerce): render 0 prices in PriceCell#15903
naaa760 wants to merge 1 commit intopayloadcms:mainfrom
naaa760:fix/plg-pri-cell-trt-set

Conversation

@naaa760
Copy link
Contributor

@naaa760 naaa760 commented Mar 11, 2026

what?

  • Fix PriceCell treating 0 as “price not set”.

Why?

  • 0 is a valid price/balance and should display formatted output.

How?

  • Replace falsy checks with a valid-number check (typeof === 'number' and not NaN).
  • Before/After: Before 0 showed “price not set”; after 0 formats as €0.00 (currency-dependent).

###Related:

Fixes #15861

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugin-ecommerce: PriceCell treats 0 as 'price not set'

1 participant