Skip to content

[POS UI Extensions] List badge not showing the number 0 #1737

Open
@timvandam

Description

@timvandam

Please list the package(s) involved in the issue, and include the version you are using

@shopify/[email protected]
@shopify/[email protected]

Describe the bug

The badge part of the <List /> component does not work when using 0 as the value. It instead stays blank

Steps to reproduce the behavior:

  1. <List imageDisplayStrategy={'always'} data={[{ id: '1', leftSide: { label: 'Hello world!', image: { badge: 0 } } }]} />

Expected behavior

It should show "0" in the badge

Screenshots

image

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions