-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat: add logic to have real delegation balances #8154
feat: add logic to have real delegation balances #8154
Conversation
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.
We should close the popup once we know the new delegation outputs
$: rawDelegatedAmount = delegationOutputs.reduce((acc, prev) => acc + Number(prev.output.amount), 0) | ||
$: formattedDelegated = formatTokenAmountBestMatch(rawDelegatedAmount, baseCoin.metadata) | ||
|
||
$: rawUndelegatedAmount = Number($selectedWallet.balances.baseCoin.available) - rawDelegatedAmount |
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.
We should check whether selectedWallet is undefined or not as it will be undefined or null whtn the user logs out
Cannot read properties of undefined (reading 'balances')
TypeError: Cannot read properties of undefined (reading 'balances')
at $$self.$$.update (http://localhost:3333/build/index.js:200467:70)
at update (http://localhost:3333/build/index.js:358186:12)
at flush (http://localhost:3333/build/index.js:358150:17)
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.
…'develop-iota2.0' of github.com:iotaledger/firefly into feat/add-logic-to-have-real-delegation-balances
…'develop-iota2.0' of github.com:iotaledger/firefly into feat/add-logic-to-have-real-delegation-balances
Closes #8112
TODO comment -> #8187
Summary
...
Changelog
Testing
Platforms
Instructions
...
Checklist