This PR fixes the display of the voting period and the timelock period.
The existing code had an error with a check on the rawParam.result !== undefined since the input had no .result attribute, the code always returned null.
Since the functions calling the formatParam function have their check for the param not being undefined I removed the check.
I also added a check for the period in days being 0. If that's the case the period is displayed in minutes to support our testnet setup.
This PR fixes the display of the voting period and the timelock period. The existing code had an error with a check on the
rawParam.result !== undefined
since the input had no .result attribute, the code always returned null.Since the functions calling the formatParam function have their check for the param not being undefined I removed the check.
I also added a check for the period in days being 0. If that's the case the period is displayed in minutes to support our testnet setup.
Fixes #149