We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c727c51 commit ef7d3acCopy full SHA for ef7d3ac
src/index.js
@@ -71,8 +71,8 @@ class Game extends React.Component {
71
});
72
73
const coordinates = this.history.map((step, pos) => {
74
- if (!step.coordinates[step.lastPush]) {return null;}
75
- const desc = pos ? 'X: ' + step.coordinates[step.lastPush] + ' Y: ' + step.coordinates[step.lastPush] : null;
+ if (!step.coordinates[step.lastPush]) { return null; }
+ const desc = pos ? 'X: ' + step.coordinates[step.lastPush][0] + ' Y: ' + step.coordinates[step.lastPush][1] : null;
76
return (
77
<li key={pos}>
78
<span>{desc}</span>
0 commit comments