This commit is contained in:
JustArchi
2019-01-12 19:08:36 +01:00
parent 92431c1d3e
commit e448284174
2 changed files with 4 additions and 4 deletions

View File

@@ -129,7 +129,7 @@ namespace ArchiSteamFarm {
}
[ItemCanBeNull]
internal async Task<HashSet<Confirmation>> GetConfirmations(Steam.ConfirmationDetails.EType acceptedType = Steam.ConfirmationDetails.EType.Unknown) {
internal async Task<HashSet<Confirmation>> GetConfirmations(Steam.ConfirmationDetails.EType? acceptedType = null) {
if (!HasValidDeviceID) {
Bot.ArchiLogger.LogGenericError(Strings.ErrorMobileAuthenticatorInvalidDeviceID);
@@ -213,7 +213,7 @@ namespace ArchiSteamFarm {
return null;
}
if ((acceptedType != Steam.ConfirmationDetails.EType.Unknown) && (acceptedType != type)) {
if (acceptedType.HasValue && (acceptedType.Value != type)) {
continue;
}