Skip to content

Commit

Permalink
destructuring play
Browse files Browse the repository at this point in the history
  • Loading branch information
freirart committed May 9, 2024
1 parent 0d58d8d commit c29ff3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Footer({
leading-7 md:leading-9"
>
<ul>
{playHistory.map((p, index) => {
{playHistory.map(({ playerId, x, y }, index) => {
const opacity = (100 - 20 * index) / 100;

return (
Expand All @@ -25,7 +25,7 @@ export default function Footer({
style={{ opacity }}
className="text-special-black dark:text-white-blue"
>
{playersInfo[p.playerId].name} jogou {p.x}, {p.y}
{playersInfo[playerId].name} jogou {x}, {y}
</li>
);
})}
Expand Down

0 comments on commit c29ff3d

Please sign in to comment.