jubishop / smalldemocracy

Tools for a Small Democracy.
https://smalldemocracy.com
Other
2 stars 1 forks source link

Am I doing promises wrong? #225

Closed jubishop closed 2 years ago

jubishop commented 2 years ago

No catch? Just check for undefined?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch

jubishop commented 2 years ago

yes, but also no. leaving like is so we can have default behavior instead of promises that require a then() always.