Delrifai/#417 fix wallet bug
Hello Mohammad,
The changes in this merge request are made per Jacob's suggestion. As we see from the photos, the formatting of the $ values in the wallet changes according to the locale, and hence calculating it at the component level was causing issues. Because we have many locales and formats it is best to move the calculation to useConvertedAccountDetails.tsx. I have done the following :
-
Calculated the account_value based on dollars and assigned it as a value in dollar object
-
After calculation, I changed it to NaiAsset using hivechain.hbd function so the formatter can format it based on precision and nai
-
Made sure to skip calculations for
"delegated_vesting_shares", "received_vesting_shares"
Testing notes :

