Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
PCJones committed Jan 8, 2024
1 parent 6183515 commit 8f5dc3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Api/SplinterlandsAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ public static async Task<UserCard[]> GetPlayerCardsAsync(string username, string
currentUser != (string)card["last_used_player"]);
}
bool listedOnMarket = (string)card["market_listing_type"] == "RENT" && (string)card["player"] != username ? false : card["market_listing_type"].Type
!= JTokenType.Null ? true : false;
!= JTokenType.Null;

bool workingTheLand = card["stake_plot"].Type != JTokenType.Null ? true : false;
bool workingTheLand = card["stake_plot"].Type != JTokenType.Null;

return currentUser == username && !cardOnCooldown && !listedOnMarket && !workingTheLand;
})
Expand Down

0 comments on commit 8f5dc3d

Please sign in to comment.