Skip to content

Commit

Permalink
Removed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JNaid00 committed Oct 25, 2023
1 parent b972d47 commit 107f140
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@
{
var rep = await ProtectedSessionStore.GetAsync<ReportModel>("currentReport");
ReportModel tempReport = rep.Value!;
homeSize = tempReport.homeSize;
homeSize = tempReport.homeSize!;
}
if (systems.Count > 0)
{
Expand Down
3 changes: 0 additions & 3 deletions src/apps/blazor-app/Components/Advanced/Variants.razor
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -159,8 +158,6 @@
private int applianceNumberOfPage = 0;
private string applianceAnimation = "";

private ElementReference durationInput;


protected override void OnInitialized()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</div>
</div>
<div class="w-full lg:flex justify-center items-center md:px-4 gap-4 mt-5">
@if (false)
@if (monthlyFluxDataReceived)
{
<div class="flex md:w-1/2 md:mx-auto lg:w-1/3 flex-col justify-center items-center gap-3">
<h1 class="text-center text-primary-800 font-semibold text-xl">Monthly Flux Map</h1>
Expand Down
1 change: 0 additions & 1 deletion src/apps/blazor-app/Pages/AdvancedCalculations.razor
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@
private bool edit = false;
private List<ApplianceModel> appliances = new List<ApplianceModel>();
private List<SystemModel> systems = new List<SystemModel>();
private List<ReportAllApplianceModel>? reportAllAppliance;
private ReportModel currentReport = new ReportModel();
private List<CustomApplianceModel> customAppliances = new List<CustomApplianceModel>();
public LocationDataModel? currentLocationData { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/apps/blazor-app/Pages/Report.razor
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<div class="grid grid-cols-2 justify-center items-center gap-2">
@{
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);
}
Expand Down

0 comments on commit 107f140

Please sign in to comment.