From fc69d65af1a1e12d756841c06ddfedc3c3fa85f7 Mon Sep 17 00:00:00 2001 From: Tobias Hofmann Date: Mon, 30 Jan 2023 11:40:43 +0100 Subject: [PATCH] Adjust to current incident numbers The example won't work with the current incident numbers. 500 for warning and 800 for critical results currently that all numbers are formatted as default. Looking at the current numbers, values like 50 for default, 100 for warning and everything above gives a better result when running the example. --- exercises/ex4/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/ex4/README.md b/exercises/ex4/README.md index cd7c11f..b809e9f 100644 --- a/exercises/ex4/README.md +++ b/exercises/ex4/README.md @@ -14,9 +14,9 @@ After completing these steps, you will have added two formatters to the controll } formatIconColor(incidence: number) { - if (incidence < 500) { + if (incidence < 50) { return IconColor.Default; - } else if (incidence < 800) { + } else if (incidence < 100) { return IconColor.Critical; } else { return IconColor.Negative;