Skip to content

Commit

Permalink
move license display check in front of transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekwav committed Dec 29, 2024
1 parent 07dd768 commit e59ebb3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ function TransactionHistory() {
</span>
)
}
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'
}
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit e59ebb3

Please sign in to comment.