fix: error on first channel selection
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 1s
Build, Package and Push Images / build (push) Successful in 24s
Build, Package and Push Images / sbom-scan (push) Successful in 34s
Build, Package and Push Images / container-build (push) Successful in 1m14s
Build, Package and Push Images / sonarqube (push) Successful in 1m19s
Build, Package and Push Images / container-sbom-scan (push) Successful in 32s

This commit is contained in:
Timothy Schenk 2023-11-14 21:38:34 +01:00
parent a214f6fb0b
commit 1e92c53bad

View file

@ -37,7 +37,7 @@ public class ChannelSelectionHandler : IPacketHandler<ChannelSelectionPacket>
CharacterSelectionSetGuildNamePacket guildNameResponsePacket;
var hasCharacters = this._wonderkingContext.Accounts.Include(account => account.Characters)
.FirstOrDefault(a => a.Id == authSession.AccountId)?.Characters.Count != 0;
.FirstOrDefault(a => a.Id == authSession.AccountId)?.Characters.Count > 0;
var testingChars = false;
if (hasCharacters && !testingChars)
{