parent
5cc3d943f2
commit
3b38ba3a29
@ -3,6 +3,10 @@ import {helper} from '@ember/component/helper';
|
|||||||
import {htmlSafe} from '@ember/template';
|
import {htmlSafe} from '@ember/template';
|
||||||
|
|
||||||
export function splitNumber([number, previousNumber]) {
|
export function splitNumber([number, previousNumber]) {
|
||||||
|
if (number === undefined || previousNumber === undefined) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
let formattedNewNumber = formatNumber(number);
|
let formattedNewNumber = formatNumber(number);
|
||||||
let formattedOldNumber = formatNumber(previousNumber);
|
let formattedOldNumber = formatNumber(previousNumber);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user