From 988b3946436c48d97a8d76ec218fb15371b9538d Mon Sep 17 00:00:00 2001 From: midblep Date: Wed, 25 May 2022 01:31:01 +0200 Subject: [PATCH] clear button --- src/lib/calculator/Calculator.svelte | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/lib/calculator/Calculator.svelte b/src/lib/calculator/Calculator.svelte index 199085d..38762df 100644 --- a/src/lib/calculator/Calculator.svelte +++ b/src/lib/calculator/Calculator.svelte @@ -181,6 +181,11 @@ save(); } + function clear() { + commissions = []; + save(); + } + onMount(() => { setup(); }); @@ -196,14 +201,11 @@
-
-
- -
-
- - -
+
+ + + +