diff --git a/components/AccountDetails/TransactionHistory/TransactionHistory.tsx b/components/AccountDetails/TransactionHistory/TransactionHistory.tsx index 82cc6d4d..318a4d8d 100644 --- a/components/AccountDetails/TransactionHistory/TransactionHistory.tsx +++ b/components/AccountDetails/TransactionHistory/TransactionHistory.tsx @@ -33,6 +33,10 @@ function TransactionHistory() { ) } + if (transaction.reference.startsWith('license-')) { + const licenseparts = transaction.reference.split('-') + return `Transfer (License ${licenseparts[1]} for ${licenseparts[2]})` + } if (transaction.productId === 'transfer') { return 'CoflCoins-Transfer' } @@ -66,10 +70,6 @@ function TransactionHistory() { if (parts.length === 2 && /^[0-9a-fA-F]{32}$/.test(parts[0]) && /^[0-9a-fA-F\-]{1,}$/.test(parts[1])) { suffix = ` (License for ${parts[0]})` } - if (transaction.reference.startsWith('license-')) { - const licenseparts = transaction.reference.split('-') - suffix = ` (License ${licenseparts[1]} for ${licenseparts[2]})` - } let purchasedPremiumOption PREMIUM_TYPES.forEach(premiumType => {