I wish the compiler was smart enough to catch errors like this

This commit is contained in:
barelyprofessional
2025-10-05 00:52:33 -05:00
parent d37401e1cd
commit 0e6bed23b3

View File

@@ -29,7 +29,7 @@ public class GuessWhatNumberCommand : ICommand
return; return;
} }
var wager = Convert.ToDecimal(amount); var wager = Convert.ToDecimal(amount.Value);
var guess = Convert.ToInt32(arguments["number"].Value); var guess = Convert.ToInt32(arguments["number"].Value);
var gambler = await Money.GetGamblerEntityAsync(user.Id, ct: ctx); var gambler = await Money.GetGamblerEntityAsync(user.Id, ct: ctx);
if (gambler == null) if (gambler == null)