Skip to content

Commit

Permalink
Merge branch 'main' into create-solana-account-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
javiergarciavera authored Dec 18, 2024
2 parents 41a7b87 + 19f4861 commit c0d7e52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ exports[`AssetPage should render a native asset 1`] = `
<p
class="mm-box mm-text mm-text--body-md mm-text--font-weight-medium mm-text--text-align-end mm-box--color-text-default"
data-testid="multichain-token-list-item-secondary-value"
>
$0.00
</p>
/>
</div>
<div
class="mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--justify-content-space-between"
Expand Down
6 changes: 4 additions & 2 deletions ui/pages/asset/components/asset-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const AssetPage = ({

// Market and conversion rate data
const baseCurrency = marketData[chainId]?.[address]?.currency;
const tokenMarketPrice = marketData[chainId]?.[address]?.price || 0;
const tokenMarketPrice = marketData[chainId]?.[address]?.price || undefined;
const tokenExchangeRate =
type === AssetType.native
? currencyRates[symbol]?.conversionRate
Expand Down Expand Up @@ -284,7 +284,9 @@ const AssetPage = ({
chainId={chainId}
symbol={symbol}
image={image}
tokenFiatAmount={showFiat ? tokenFiatAmount : null}
tokenFiatAmount={
showFiat && tokenMarketPrice ? tokenFiatAmount : null
}
string={balance?.toString()}
/>
<Box
Expand Down
12 changes: 4 additions & 8 deletions ui/selectors/confirm-transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,13 @@ import {
getUnapprovedTransactions,
selectTransactionMetadata,
selectTransactionSender,
unapprovedPersonalMsgsSelector,
unapprovedDecryptMsgsSelector,
unapprovedEncryptionPublicKeyMsgsSelector,
unapprovedTypedMessagesSelector,
} from './transactions';

const unapprovedTxsSelector = (state) => getUnapprovedTransactions(state);
const unapprovedPersonalMsgsSelector = (state) =>
state.metamask.unapprovedPersonalMsgs;
const unapprovedDecryptMsgsSelector = (state) =>
state.metamask.unapprovedDecryptMsgs;
const unapprovedEncryptionPublicKeyMsgsSelector = (state) =>
state.metamask.unapprovedEncryptionPublicKeyMsgs;
const unapprovedTypedMessagesSelector = (state) =>
state.metamask.unapprovedTypedMessages;

export const unconfirmedTransactionsListSelector = createSelector(
unapprovedTxsSelector,
Expand Down

0 comments on commit c0d7e52

Please sign in to comment.