From 02230d0fc54d17e6e5e3a9bbc951b0a0967bf5a1 Mon Sep 17 00:00:00 2001 From: ONS-Tom Date: Fri, 17 Nov 2017 10:52:37 +0000 Subject: [PATCH] Fix/cn expand view (#10) * Add fix for CN display in helperMethods * Remove debugging statement --- src/utils/helperMethods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helperMethods.js b/src/utils/helperMethods.js index 90ca6d9..76aeab4 100644 --- a/src/utils/helperMethods.js +++ b/src/utils/helperMethods.js @@ -68,7 +68,7 @@ export function maxSize(...args) { } export function formatData(business: {}) { - const largestRef = maxSize(business.vatRefs, business.payeRefs); + const largestRef = maxSize(business.vatRefs, business.payeRefs, [business.companyNo]); const formattedData = []; for (let i = 0; i <= largestRef - 1; i += 1) { if (i === 0) {