Skip to content

Commit

Permalink
handle currency ticker correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed May 21, 2024
1 parent 61917df commit b7580d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mimir/Controllers/AgentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public async Task<string> GetBalances(
return string.Empty;
}

Currency? c = currency.ToLowerInvariant() switch
Currency? c = currency switch
{
"ncg" => _ncg,
"crystal" => Currencies.Crystal,
"NCG" => _ncg,
"CRYSTAL" => Currencies.Crystal,
_ => null,
};
if (c is null)
Expand Down

0 comments on commit b7580d3

Please sign in to comment.