OpenBazaar / openbazaar-desktop

OpenBazaar 2.0 Desktop Client (talks to openbazaar-go server daemon)
MIT License
647 stars 186 forks source link

Handle Mod With Missing Fixed Fee Currency #1857

Closed jjeffryes closed 4 years ago

jjeffryes commented 4 years ago

This prevents an unhandled error when a moderator has '' for the currency code in their fixedFee object by validating the model when it's added to the collection. This was causing loading moderators in settings/store to fail.

Now all moderators will be validated before being added to the moderator view, and if they are invalid, they will not be shown.

jjeffryes commented 4 years ago

@rmisio I know you're on vacation, the review here is just so you take a look after you're back. Since this fixes a bug that could break loading moderators, I merged it for the 2.3.8 release.