mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 02:56:10 +00:00
fix: Minus sign correction. (#18802)
This commit is contained in:
parent
9f1be47b37
commit
15f56c124a
@ -117,10 +117,9 @@ public class DataInsightDescriptionAndOwnerTemplate {
|
||||
if (percent > 0) {
|
||||
symbol = "+";
|
||||
color = "#008611";
|
||||
} else if (percent < 0) {
|
||||
symbol = "-";
|
||||
}
|
||||
|
||||
// No need for "-" since String.format handles negatives
|
||||
return String.format(
|
||||
"<span style=\"color:%s ; font-weight: 600\">%s%.2f%%</span>", color, symbol, percent);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user