mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 10:27:18 +02:00
fix: bug - null reference for hidden accounts
This commit is contained in:
1 parent
bb16617f3f
commit
7d524fcdcd
7 files changed
+28
-38
No files matched your search
+6
-12
@@ -11,24 +11,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
||||
{
|
||||
return serializedValue switch
|
||||
{
|
||||
"NONE" => MarkOfMastery.None,
|
||||
"RANK3" => MarkOfMastery.Rank3,
|
||||
"RANK2" => MarkOfMastery.Rank2,
|
||||
"RANK1" => MarkOfMastery.Rank1,
|
||||
"MASTER" => MarkOfMastery.Master,
|
||||
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
||||
"NONE" => MarkOfMastery.None, "RANK3" => MarkOfMastery.Rank3, "RANK2" => MarkOfMastery.Rank2, "RANK1" => MarkOfMastery.Rank1, "MASTER" => MarkOfMastery.Master, _ => throw new global::StrawberryShake.GraphQLClientException()}
|
||||
|
||||
;
|
||||
}
|
||||
|
||||
public global::System.Object Format(global::System.Object? runtimeValue)
|
||||
{
|
||||
return runtimeValue switch
|
||||
{
|
||||
MarkOfMastery.None => "NONE",
|
||||
MarkOfMastery.Rank3 => "RANK3",
|
||||
MarkOfMastery.Rank2 => "RANK2",
|
||||
MarkOfMastery.Rank1 => "RANK1",
|
||||
MarkOfMastery.Master => "MASTER",
|
||||
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
||||
MarkOfMastery.None => "NONE", MarkOfMastery.Rank3 => "RANK3", MarkOfMastery.Rank2 => "RANK2", MarkOfMastery.Rank1 => "RANK1", MarkOfMastery.Master => "MASTER", _ => throw new global::StrawberryShake.GraphQLClientException()}
|
||||
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
-10
@@ -11,22 +11,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
||||
{
|
||||
return serializedValue switch
|
||||
{
|
||||
"RU" => RealmType.Ru,
|
||||
"EU" => RealmType.Eu,
|
||||
"NA" => RealmType.Na,
|
||||
"ASIA" => RealmType.Asia,
|
||||
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
||||
"RU" => RealmType.Ru, "EU" => RealmType.Eu, "NA" => RealmType.Na, "ASIA" => RealmType.Asia, _ => throw new global::StrawberryShake.GraphQLClientException()}
|
||||
|
||||
;
|
||||
}
|
||||
|
||||
public global::System.Object Format(global::System.Object? runtimeValue)
|
||||
{
|
||||
return runtimeValue switch
|
||||
{
|
||||
RealmType.Ru => "RU",
|
||||
RealmType.Eu => "EU",
|
||||
RealmType.Na => "NA",
|
||||
RealmType.Asia => "ASIA",
|
||||
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
||||
RealmType.Ru => "RU", RealmType.Eu => "EU", RealmType.Na => "NA", RealmType.Asia => "ASIA", _ => throw new global::StrawberryShake.GraphQLClientException()}
|
||||
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
-8
@@ -11,20 +11,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
||||
{
|
||||
return serializedValue switch
|
||||
{
|
||||
"RU" => RequestLanguage.Ru,
|
||||
"EN" => RequestLanguage.En,
|
||||
"DE" => RequestLanguage.De,
|
||||
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
||||
"RU" => RequestLanguage.Ru, "EN" => RequestLanguage.En, "DE" => RequestLanguage.De, _ => throw new global::StrawberryShake.GraphQLClientException()}
|
||||
|
||||
;
|
||||
}
|
||||
|
||||
public global::System.Object Format(global::System.Object? runtimeValue)
|
||||
{
|
||||
return runtimeValue switch
|
||||
{
|
||||
RequestLanguage.Ru => "RU",
|
||||
RequestLanguage.En => "EN",
|
||||
RequestLanguage.De => "DE",
|
||||
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
||||
RequestLanguage.Ru => "RU", RequestLanguage.En => "EN", RequestLanguage.De => "DE", _ => throw new global::StrawberryShake.GraphQLClientException()}
|
||||
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user