From 5461ff31978c05f8f11cdb028f66932d6cf0e707 Mon Sep 17 00:00:00 2001
From: ramseshk <45832522+ramseshk@users.noreply.github.com>
Date: Thu, 13 Aug 2026 15:50:03 +0800
Subject: [PATCH] fix: round FV/cr value in detail view and bump SW cache
version
---
pwa/static/app.js | 2 +-
pwa/static/sw.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pwa/static/app.js b/pwa/static/app.js
index e4761e8..e5212ed 100644
--- a/pwa/static/app.js
+++ b/pwa/static/app.js
@@ -285,7 +285,7 @@ function renderDetail() {
Estimated Opponent Bid${p.opponent_bid} cr
Max Rational Bid${p.max_bid} cr
- Value: ${p.p50 / Math.max(p.recommended_bid || 1, 1).toFixed(3)} FV/cr
+ Value: ${(p.p50 / Math.max(p.recommended_bid || 1, 1)).toFixed(3)} FV/cr
Budget left: ${remaining} cr
diff --git a/pwa/static/sw.js b/pwa/static/sw.js
index 9071bdb..628c583 100644
--- a/pwa/static/sw.js
+++ b/pwa/static/sw.js
@@ -1,4 +1,4 @@
-const CACHE = "fantabeto-v1";
+const CACHE = "fantabeto-v2";
const ASSETS = ["/", "/index.html", "/app.js", "/styles.css", "/manifest.json"];
self.addEventListener("install", (e) => {