Skip to content

Commit

Permalink
fix #178 move highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnymac committed Jan 2, 2017
1 parent 50fbfdf commit a95c6e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/screens/Detail/components/CinematicMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const CinematicMove = React.createClass({
{`Crit Chance: ${critChance.toFixed(2)}%`}
</span>)

const thisMove = move === myMove ? 'pokemon-move-item mine' : 'pokemon-move-item notmine'
const thisMove = move.movement_id === myMove.movement_id ? 'pokemon-move-item mine' : 'pokemon-move-item notmine'

return (
<div className={thisMove}>
Expand Down
2 changes: 1 addition & 1 deletion app/screens/Detail/components/QuickMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const QuickMove = React.createClass({
{`EGPS: ${move.egps.toFixed(2)}`}
</span>)

const thisMove = move === myMove ? 'pokemon-move-item mine' : 'pokemon-move-item notmine'
const thisMove = move.movement_id === myMove.movement_id ? 'pokemon-move-item mine' : 'pokemon-move-item notmine'

return (
<div className={thisMove}>
Expand Down

0 comments on commit a95c6e5

Please sign in to comment.