From a95c6e5ab32a0784c97a7fcc93a29b6dc6acc6a8 Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Mon, 2 Jan 2017 17:44:17 -0500 Subject: [PATCH] fix #178 move highlight --- app/screens/Detail/components/CinematicMove.js | 2 +- app/screens/Detail/components/QuickMove.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/screens/Detail/components/CinematicMove.js b/app/screens/Detail/components/CinematicMove.js index a0485bd..5492c39 100644 --- a/app/screens/Detail/components/CinematicMove.js +++ b/app/screens/Detail/components/CinematicMove.js @@ -37,7 +37,7 @@ const CinematicMove = React.createClass({ {`Crit Chance: ${critChance.toFixed(2)}%`} ) - 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 (
diff --git a/app/screens/Detail/components/QuickMove.js b/app/screens/Detail/components/QuickMove.js index 07b65f9..c7d801e 100644 --- a/app/screens/Detail/components/QuickMove.js +++ b/app/screens/Detail/components/QuickMove.js @@ -30,7 +30,7 @@ const QuickMove = React.createClass({ {`EGPS: ${move.egps.toFixed(2)}`} ) - 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 (