From 107f140c6c52a64add458ffd2cdef9306a722ca8 Mon Sep 17 00:00:00 2001 From: Jesse Naidoo Date: Wed, 25 Oct 2023 22:37:19 +0200 Subject: [PATCH] Removed warnings --- src/apps/blazor-app/Components/Advanced/BuildYourHome.razor | 2 +- src/apps/blazor-app/Components/Advanced/Variants.razor | 3 --- .../blazor-app/Components/Dashboard/FancyData/FancyData.razor | 2 +- src/apps/blazor-app/Pages/AdvancedCalculations.razor | 1 - src/apps/blazor-app/Pages/Report.razor | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/apps/blazor-app/Components/Advanced/BuildYourHome.razor b/src/apps/blazor-app/Components/Advanced/BuildYourHome.razor index 1bc7805f..9287999d 100644 --- a/src/apps/blazor-app/Components/Advanced/BuildYourHome.razor +++ b/src/apps/blazor-app/Components/Advanced/BuildYourHome.razor @@ -666,7 +666,7 @@ { var rep = await ProtectedSessionStore.GetAsync("currentReport"); ReportModel tempReport = rep.Value!; - homeSize = tempReport.homeSize; + homeSize = tempReport.homeSize!; } if (systems.Count > 0) { diff --git a/src/apps/blazor-app/Components/Advanced/Variants.razor b/src/apps/blazor-app/Components/Advanced/Variants.razor index d75ebdec..1fe8faa7 100644 --- a/src/apps/blazor-app/Components/Advanced/Variants.razor +++ b/src/apps/blazor-app/Components/Advanced/Variants.razor @@ -128,7 +128,6 @@ private string? value = ""; private int noOfAppliancesInView = 5; private int powerUsage = 0; - private double durationUsed = 0; private string selectedAppliance = ""; private int applianceCount = 0; [Parameter] @@ -159,8 +158,6 @@ private int applianceNumberOfPage = 0; private string applianceAnimation = ""; - private ElementReference durationInput; - protected override void OnInitialized() { diff --git a/src/apps/blazor-app/Components/Dashboard/FancyData/FancyData.razor b/src/apps/blazor-app/Components/Dashboard/FancyData/FancyData.razor index fc97810d..672eac91 100644 --- a/src/apps/blazor-app/Components/Dashboard/FancyData/FancyData.razor +++ b/src/apps/blazor-app/Components/Dashboard/FancyData/FancyData.razor @@ -104,7 +104,7 @@
- @if (false) + @if (monthlyFluxDataReceived) {

Monthly Flux Map

diff --git a/src/apps/blazor-app/Pages/AdvancedCalculations.razor b/src/apps/blazor-app/Pages/AdvancedCalculations.razor index 6e32ac98..c32be2a4 100644 --- a/src/apps/blazor-app/Pages/AdvancedCalculations.razor +++ b/src/apps/blazor-app/Pages/AdvancedCalculations.razor @@ -148,7 +148,6 @@ private bool edit = false; private List appliances = new List(); private List systems = new List(); - private List? reportAllAppliance; private ReportModel currentReport = new ReportModel(); private List customAppliances = new List(); public LocationDataModel? currentLocationData { get; set; } diff --git a/src/apps/blazor-app/Pages/Report.razor b/src/apps/blazor-app/Pages/Report.razor index 9d4e2b32..58057ba9 100644 --- a/src/apps/blazor-app/Pages/Report.razor +++ b/src/apps/blazor-app/Pages/Report.razor @@ -164,7 +164,7 @@
@{ double squaredArea = Math.Round(wholeroofstats!.areaMeters2); - double maxArraArea = Math.Round(resultLocationData.solarPanelsData!.solarPotential!.maxArrayAreaMeters2); + double maxArraArea = Math.Round(resultLocationData!.solarPanelsData!.solarPotential!.maxArrayAreaMeters2); double maxHoursSunlightPerDay = Math.Round(resultLocationData.solarPanelsData!.solarPotential!.maxSunshineHoursPerYear / 365, 2); }