-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Cardano + tokens issues #16459
base: develop
Are you sure you want to change the base?
Cardano + tokens issues #16459
Conversation
@@ -185,7 +186,11 @@ export const selectTokenDefinitionsEnabledNetworks = createMemoizedSelector( | |||
[selectEnabledDiscoveryNetworkSymbols, selectNetworkSymbolsOfAccountsWithTokensAllowed], | |||
(enabledNetworkSymbols, accountNetworkSymbols) => | |||
returnStableArrayIfEmpty( | |||
F.toMutable(A.uniq([...enabledNetworkSymbols, ...accountNetworkSymbols])), | |||
F.toMutable( | |||
A.uniq([...enabledNetworkSymbols, ...accountNetworkSymbols]).filter(s => |
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.
Please use pipe
and ideally move filter before uniq
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.
|
||
const knownTokens = useSelector((state: TokenDefinitionsRootState) => | ||
selectFilterKnownTokens(state, symbol, accountInfo.tokens ?? []), | ||
canHaveTokens ? selectFilterKnownTokens(state, symbol, accountInfo.tokens ?? []) : [], |
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.
would this just return empty array even without condition?
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.
🚀 Expo preview is ready!
|
a6eedc8 count fiat balance for cardano tokens after decimals are applied
3aa329a dont fetch token definitions for not enabled networks and dont show them in this case
Related Issue
Resolve #16423
Resolve #16410
Screenshots:
BEFORE:
AFTER: