From fec3812ab70c291392841d41dfdf93af594af2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 19 May 2024 14:18:11 +0300 Subject: [PATCH] =?UTF-8?q?=C3=84l=C3=A4=20lis=C3=A4=C3=A4=20tyhji=C3=A4?= =?UTF-8?q?=20transaktioita=20historiaan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tietokanta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tietokanta.js b/tietokanta.js index 781dd03..588a315 100644 --- a/tietokanta.js +++ b/tietokanta.js @@ -84,7 +84,7 @@ class Tietokanta { } suorita(transaktio) { - if (transaktio.peruttu) { + if (transaktio.peruttu || transaktio.muutokset.length === 0) { return []; }