Skip to content

Commit

Permalink
fix(common): privacy mode left overs
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed May 30, 2024
1 parent e2439ad commit 17c0626
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const TokenAmountItem = ({
const detail = isPrimary ? info.description : info.fingerprint
const name = infoExtractName(info)

const formattedQuantity = !isPrivacyActive && ignorePrivacy == true ? amountFormatter()(amount) : privacyPlaceholder
const formattedQuantity = !isPrivacyActive || ignorePrivacy === true ? amountFormatter()(amount) : privacyPlaceholder

const showSwapDetails = !isPrimary && variant === 'swap'
const priceImpactRiskTextColor = orderType === 'market' ? priceImpactRiskTheme.text : colors.text
Expand Down
2 changes: 0 additions & 2 deletions apps/wallet-mobile/src/legacy/TxHistory/BalanceBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const Balance = ({amount, ignorePrivacy}: BalanceProps) => {
const {isPrivacyActive, privacyPlaceholder} = usePrivacyMode()
const styles = useStyles()

console.log('ignorePrivacy', ignorePrivacy)

const balance = React.useMemo(
() =>
!isPrivacyActive || ignorePrivacy === true
Expand Down

0 comments on commit 17c0626

Please sign in to comment.