-
Notifications
You must be signed in to change notification settings - Fork 19
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(tangle-dapp): Fix token selector not working for Tangle mainnet #2849
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for tangle-cloud ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for tangle-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Left some comments.
)?.balance; | ||
const balance = | ||
isNativeToken && token.tokenType === 'TNT' | ||
? formatEther(nativeTokenBalance?.value ?? BigInt(0)) |
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.
nativeTokenBalance?.value !== undefined
? formatEther(nativeTokenBalance.value)
: undefined
@@ -426,18 +426,19 @@ const BridgeContainer = ({ className }: Props) => { | |||
|
|||
const assets: AssetConfig[] = useMemo(() => { | |||
return tokens.map((token) => { |
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.
Utilize AI to refactor this assets
calculation memo for better readability and easier review.
Summary of changes
Proposed area of change
apps/tangle-dapp
apps/tangle-cloud
libs/tangle-shared-ui
libs/ui-components
Associated issue(s)
Screen Recording
CleanShot.2025-02-28.at.06.34.18.mp4