diff --git a/basicswap/static/js/modules/coin-manager.js b/basicswap/static/js/modules/coin-manager.js index 7d0a1e0..773d5bf 100644 --- a/basicswap/static/js/modules/coin-manager.js +++ b/basicswap/static/js/modules/coin-manager.js @@ -203,6 +203,19 @@ const CoinManager = (function() { return coin ? coin.symbol : null; }, getDisplayName: function(identifier) { + if (!identifier) return null; + + const normalizedId = identifier.toString().toLowerCase().trim(); + if (normalizedId === 'particl anon' || normalizedId === 'part_anon' || normalizedId === 'particl_anon') { + return 'Particl Anon'; + } + if (normalizedId === 'particl blind' || normalizedId === 'part_blind' || normalizedId === 'particl_blind') { + return 'Particl Blind'; + } + if (normalizedId === 'litecoin mweb' || normalizedId === 'ltc_mweb' || normalizedId === 'litecoin_mweb') { + return 'Litecoin MWEB'; + } + const coin = getCoinByAnyIdentifier(identifier); return coin ? coin.displayName : null; }, diff --git a/basicswap/static/js/swaps_in_progress.js b/basicswap/static/js/swaps_in_progress.js index 6fc8ff2..5e8dc5d 100644 --- a/basicswap/static/js/swaps_in_progress.js +++ b/basicswap/static/js/swaps_in_progress.js @@ -293,8 +293,8 @@ const createSwapTableRow = async (swap) => { const identity = await IdentityManager.getIdentityData(swap.addr_from); const uniqueId = `${swap.bid_id}_${swap.created_at}`; - const fromSymbol = window.CoinManager.getSymbol(swap.coin_from) || swap.coin_from; - const toSymbol = window.CoinManager.getSymbol(swap.coin_to) || swap.coin_to; + const fromSymbol = window.CoinManager.getDisplayName(swap.coin_from) || swap.coin_from; + const toSymbol = window.CoinManager.getDisplayName(swap.coin_to) || swap.coin_to; const timeColor = getTimeStrokeColor(swap.expire_at); const fromAmount = parseFloat(swap.amount_from) || 0; const toAmount = parseFloat(swap.amount_to) || 0; diff --git a/basicswap/templates/bids_available.html b/basicswap/templates/bids_available.html index 531611b..76b9c1e 100644 --- a/basicswap/templates/bids_available.html +++ b/basicswap/templates/bids_available.html @@ -54,7 +54,7 @@