Commit 3a6af0a6 by Torkel Ödegaard Committed by GitHub

Units: Fixes formatting of duration units (#30982)

parent 0a7c6c68
......@@ -227,7 +227,7 @@ export function toDuration(size: number, decimals: DecimalCount, timeScale: Inte
let decrementDecimals = false;
let decimalsCount = 0;
if (decimals !== null || decimals !== undefined) {
if (decimals !== null && decimals !== undefined) {
decimalsCount = decimals as number;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment