[Bug Report]: defaultComposer maybe have bug
nonzzz opened this issue · 0 comments
nonzzz commented
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
In my consola
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)