From 57bb986524388b6fc9441aea7a53ff9852380663 Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Sun, 16 Nov 2025 09:15:03 +0200 Subject: Change dom access pattern --- app/models.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models.js') diff --git a/app/models.js b/app/models.js index 95f18fd..fa9f945 100644 --- a/app/models.js +++ b/app/models.js @@ -1123,7 +1123,7 @@ export class ScoringEngine { // 3. Convert to perceived value // ---------------------------- - const PV = Math.exp(logPV); + const Pv = Math.exp(logPV); // ---------------------------- // 4. Compare with listing price @@ -1131,7 +1131,7 @@ export class ScoringEngine { if (!house.price || house.price <= 0) return 0; - const desirability = (PV / house.price) * 100; + const desirability = (Pv / house.price) * 100; return Math.max(0, Math.min(100, desirability)); } -- cgit v1.2.3-70-g09d2