Skip to content

Commit

Permalink
fix: overly long whereis names
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 1, 2021
1 parent 66c39c0 commit f7b7679
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interactions/warframe/WhereIs.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ module.exports = class WhereIs extends require('../../models/Interaction') {
results = [...(new Set(results))];
results.sort((a, b) => b.chanceNum - a.chanceNum);

const longestName = results.length ? results.map(result => result.item)
const longestName = results.length ? results.map(result => result.item
.replace('Blueprint', 'BP').replace(' Prime', ' P.'))
.reduce((a, b) => (a.length > b.length ? a : b)) : '';
const longestRelic = results.length ? results.map(result => result.place)
.reduce((a, b) => (a.length > b.length ? a : b)) : '';
Expand Down

0 comments on commit f7b7679

Please sign in to comment.