Fix ranges for displaying colors in stats email

The specs for [MAILPOET-3324] had a minor error that is fixed by this
commit. The ranges for displaying different colors for the percentage of
clicks should be < 1%, 1-3% and > 3% instead of < 10%, 10-30% and > 30%.

[MAILPOET-3324]
This commit is contained in:
Rodrigo Primo
2022-02-07 11:38:32 -03:00
committed by Veljko V
parent eee1e9703f
commit c21e12e82a

View File

@ -261,9 +261,9 @@ class Functions extends AbstractExtension {
}
public function statsColor($percentage) {
if ($percentage > 30) {
if ($percentage > 3) {
return '#7ed321';
} elseif ($percentage > 10) {
} elseif ($percentage > 1) {
return '#ff9f00';
} else {
return '#f559c3';