Commit 9250880
committed
fix: badge value of
If one of the badge values was `0`, it would cause a crash because it would try to render the `0` outside of a `Text` component.
The code also didn't allow for a badge with `0` to be rendered in the first place.
This fixes that by checking if the type of the badge value is a `number`, instead of checking if it's _truthy_.0 crash1 parent 3df23f3 commit 9250880
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments