Просмотр исходного кода

🐛 fix(tokens-table): show all extra IP addresses in tooltip

Previously, the tooltip that appears when more than one IP address is configured
skipped the second IP (`ips.slice(2)`), so users could not see it unless they
expanded the list in another way.
Changed the slice start index to `1`, ensuring that **every IP after the first
display tag** is included in the tooltip (`ips.slice(1).join(', ')`).

File affected:
- web/src/components/table/TokensTable.js
t0ng7u 7 месяцев назад
Родитель
Сommit
dca38d01d6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/src/components/table/TokensTable.js

+ 1 - 1
web/src/components/table/TokensTable.js

@@ -294,7 +294,7 @@ const TokensTable = () => {
           ipTags.push(
           ipTags.push(
             <Tooltip
             <Tooltip
               key='extra'
               key='extra'
-              content={ips.slice(2).join(', ')}
+              content={ips.slice(1).join(', ')}
               position='top'
               position='top'
               showArrow
               showArrow
             >
             >