Skip to content

Commit

Permalink
Merge pull request #181 from daithihearn/bugfix-autobuy-reversed
Browse files Browse the repository at this point in the history
Bugfix autobuy reversed
  • Loading branch information
daithihearn authored Jul 11, 2023
2 parents 79b0c62 + 5362b12 commit a4ab768
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "7.3.1",
"version": "7.3.2",
"description": "React frontend for the Cards 110",
"author": "Daithi Hearn",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"short_name": "Cards 110",
"name": "Cards 110",
"version": "7.3.1",
"version": "7.3.2",
"icons": [
{
"src": "./assets/favicon.png",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Game/Actions/PlayCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ const PlayCard = () => {
useEffect(() => {
if (round?.suit && isMyGo) {
if (cardToPlay) playCard(cardToPlay)
else if (autoPlay === "best" || bestCardLead(round)) {
else if (autoPlay === "worst" || bestCardLead(round)) {
const worstCard = getWorstCard(myCards, round.suit)
playCard(worstCard.name)
} else if (autoPlay === "worst") {
} else if (autoPlay === "best") {
const bestCard = getBestCard(myCards, round.suit)
playCard(bestCard.name)
}
Expand Down

0 comments on commit a4ab768

Please sign in to comment.