const numFormat = (input, digit = 2) => parseFloat(input).toFixed(digit);

const realFormat = (val, status) => {
  if (status === 'missing') {
    return '- - -';
  }
  return numFormat(val);
};

const makeDav = (hasFiles, hasValidFiles) => {
  if (hasFiles) return hasValidFiles;
  return undefined;
};

export { numFormat, realFormat, makeDav };

@@ -250,16 +250,30 @@
 hasFiles
+ !== undefined
 ) return

fix qc the data availabiliy mechanism