vocdoni / explorer-ui

Legacy (deprecated) Vocdoni's explorer UI. Check the new one in the link below:
https://github.com/vocdoni/explorer
GNU Affero General Public License v3.0
2 stars 1 forks source link

Prevent undefined args #146

Closed selankon closed 1 year ago

selankon commented 1 year ago

Before this, on the calculator view, when height or date were null the call to the API was made anyway.

On this way, the call is not made (avoiding errors), the useSDKFunction doesn't throw exception because the return type cannot be undefined, and on the view anything crashes due to the undefined checks.