diff --git a/.changelog/898.trivial.md b/.changelog/898.trivial.md new file mode 100644 index 000000000..fd147c1b7 --- /dev/null +++ b/.changelog/898.trivial.md @@ -0,0 +1 @@ +Display TX format for unencrypted transactions diff --git a/src/app/pages/TransactionDetailPage/index.tsx b/src/app/pages/TransactionDetailPage/index.tsx index eee267123..ecf308418 100644 --- a/src/app/pages/TransactionDetailPage/index.tsx +++ b/src/app/pages/TransactionDetailPage/index.tsx @@ -32,7 +32,7 @@ import { CurrentFiatValue } from './CurrentFiatValue' import { AddressSwitch, AddressSwitchOption } from '../../components/AddressSwitch' import InfoIcon from '@mui/icons-material/Info' import Tooltip from '@mui/material/Tooltip' -import { TransactionEncrypted } from '../../components/TransactionEncryptionStatus' +import { TransactionEncrypted, TransactionNotEncrypted } from '../../components/TransactionEncryptionStatus' import Typography from '@mui/material/Typography' import { LongDataDisplay } from '../../components/LongDataDisplay' import { getPreciseNumberFormat } from '../../../locales/getPreciseNumberFormat' @@ -245,6 +245,19 @@ export const TransactionDetailView: FC<{ +
{t('transactions.encryption.format')}
+
+ {transaction.encryption_envelope ? ( + <> + {transaction.encryption_envelope.format}   + + ) : ( + <> + {t('transactions.encryption.plain')}   + + )} +
+
{t('common.timestamp')}
{formattedTimestamp}
@@ -347,11 +360,6 @@ export const TransactionDetailView: FC<{ {transaction.encryption_envelope && ( <> -
{t('transactions.encryption.format')}
-
- {transaction.encryption_envelope.format}   -
- {transaction.encryption_envelope.public_key !== undefined && ( <>
{t('transactions.encryption.publicKey')}
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index c8fa0aad6..b83fba3a0 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -243,6 +243,7 @@ "encryptedData": "Data (encrypted)", "encryptedResult": "Result (encrypted)", "format": "Format", + "plain": "Plain", "publicKey": "Public Key", "resultNonce": "Result Nonce" },