Skip to content

Commit

Permalink
fix(OverlayMessaeg): never show null MMR
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Dec 6, 2023
1 parent 9c21aed commit a8a027d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public async void Error()

public void Mmr(string filterValue, int? minMMR, bool anomalyAdjusted)
{
if(MmrPercentValues.TryGetValue(filterValue, out var percent))
if(MmrPercentValues.TryGetValue(filterValue, out var percent) && minMMR is int minMmrInt)
{
var mmr = Helper.ToPrettyNumber(minMMR ?? 0);
var mmr = Helper.ToPrettyNumber(minMmrInt);
if(anomalyAdjusted)
{
Text = string.Format(LocUtil.Get("BattlegroundsOverlayMessage_MMR_AnomalyAdjusted"), percent, mmr);
Expand Down

0 comments on commit a8a027d

Please sign in to comment.