-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π fix(llm) account item wrong balance #9134
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ 4 Skipped Deployments
|
4de77b1
to
a9e3f62
Compare
a9e3f62
to
2f0c3bc
Compare
@@ -319,7 +319,7 @@ const SelectableAccount = ({ | |||
padding="8px" | |||
columnGap={8} | |||
> | |||
<AccountItem account={account as Account} balance={account.spendableBalance} /> | |||
<AccountItem account={account as Account} balance={account.balance} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure we want that?
Because into those flows, the aim is to send/receive, we want what we currently is available, not staking value for exemple no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've switch for useFullBalance ? account.balance : account.spendableBalance
because today with the ff off we use accountCar with this logic => <CurrencyUnitValue showCode unit={unit} value={useFullBalance ? account.balance : getAccountSpendableBalance(account)} />
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will need to check again my bad I am not sure about what we should use because the currencyUnitValue as not the same behaviour as Countervalue component inside AccountCard for the balance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so today in the send flow we display the all balance and not only the spendable balance. So I think we can keep this <CurrencyUnitValue showCode unit={unit} value={useFullBalance ? account.balance : getAccountSpendableBalance(account)} />
wdyt ? Also this component is used for the addAccount it's another list for send/receive so should be good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok with final thought
22d3aac
to
0a7ef38
Compare
0a7ef38
to
5e61f54
Compare
β Checklist
npx changeset
was attached.π Description
Spendable balance was used instead of balance. User wouldn't see the all balance (including staked)
Test added to ensure we well display the balance and not the spendable balance
β Context
π§ Checklist for the PR Reviewers