Skip to content

[Bug Report]: defaultComposer maybe have bug #18

@nonzzz

Description

@nonzzz

Background

Description

When i use this project to generator my sponsors meta info. I found when i remove Backers . And set anthor tier monthlyDollars as 1. I got a mistake.

Just like

image

In my consola

image

Expcet

I noticed that if I run the example it defaults to a blank which is normal. But there may be cases where the user deletes these isn't it? I think defaultComposer should judge 0 and null(undefined) respectively.
Currently. In defaultComposer logic is const finalSponsors = config.tiers!.filter(i => i.monthlyDollars == null || i.monthlyDollars === 0)

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