From 844e7bac2f06ccc33c1c260a001af772111eaa87 Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 16 Jan 2025 15:16:14 +0000 Subject: [PATCH] Fixed `GetCustomisationStorage` returning incorrect data --- Core/Controllers/CustomizationController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/Controllers/CustomizationController.cs b/Core/Controllers/CustomizationController.cs index 87da63fb..9c6c3dca 100644 --- a/Core/Controllers/CustomizationController.cs +++ b/Core/Controllers/CustomizationController.cs @@ -265,8 +265,11 @@ public class CustomizationController var customisationResultsClone = _cloner.Clone(_databaseService.GetTemplates().CustomisationStorage); var profile = _profileHelper.GetFullProfile(sessionId); - if (profile != null) + if (profile is null) + { return customisationResultsClone; + } + customisationResultsClone.AddRange(profile.CustomisationUnlocks ?? new());