Skip to content

Commit

Permalink
fixed hymm#186
Browse files Browse the repository at this point in the history
  • Loading branch information
yukidaruma committed Oct 29, 2018
1 parent 7d2ed7a commit 70454f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/result-detail-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ class ResultDetailCard extends React.Component {
};

checkGear(skills) {
const shiny = skills.subs.reduce((a, b) => {
return a && b && b.id === skills.subs[0].id;
}, true);
const shiny = skills.subs.every(sub => {
return sub && sub.id === skills.subs[0].id && sub.id !== '255';
});
if (shiny) {
if (skills.subs[0].id === skills.main.id) {
return 'pure';
Expand Down
6 changes: 3 additions & 3 deletions src/components/team-gear-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const AbilityCell = ({ skills }) => {
const subHeight = 20;
const background = '#777';

const shiny = skills.subs.reduce((a, b) => {
return a && b && b.id === skills.subs[0].id;
}, true);
const shiny = skills.subs.every(sub => {
return sub && sub.id === skills.subs[0].id && sub.id !== '255';
});

let bgcolor = 'darkgrey';
if (shiny) {
Expand Down

0 comments on commit 70454f9

Please sign in to comment.