From cc974f0aa8dc76a09ed5f2991155f19110564c77 Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Wed, 11 Mar 2026 08:27:42 +0200 Subject: [PATCH] =?UTF-8?q?Muuta=20p=C3=A4=C3=A4ttynyt=20sopimus=20->=20ja?= =?UTF-8?q?tkuva=20(vihre=C3=A4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Määräaikaisuuden päätyttyä sopimus jatkuu toistaiseksi voimassa olevana, joten näytetään "(jatkuva)" vihreällä punaisella "(päättynyt)" sijaan. Co-Authored-By: Claude Opus 4.6 --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index feab1dc..1c20d95 100644 --- a/script.js +++ b/script.js @@ -436,7 +436,7 @@ function contractRemaining(sopimuskausi, alkupvm) { end.setMonth(end.getMonth() + months); const now = new Date(); const diffMs = end - now; - if (diffMs <= 0) return `${months} kk (päättynyt)`; + if (diffMs <= 0) return `${months} kk (jatkuva)`; const remainMonths = Math.ceil(diffMs / (1000 * 60 * 60 * 24 * 30.44)); return `${months} kk (${remainMonths} kk jäljellä)`; }