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 :

  1. Calculated the account_value based on dollars and assigned it as a value in dollar object

  2. After calculation, I changed it to NaiAsset using hivechain.hbd function so the formatter can format it based on precision and nai

  3. Made sure to skip calculations for

    "delegated_vesting_shares", "received_vesting_shares"

Testing notes :

  1. You can change language on Brave to Polish and German and compare

  2. Here are examples of old/new values

    gtg_polish.jpg

    gtg_german.png

Merge request reports

Loading