Skip to content

Commit

Permalink
Fix/cn expand view (#10)
Browse files Browse the repository at this point in the history
* Add fix for CN display in helperMethods

* Remove debugging statement
  • Loading branch information
ONS-Tom authored and ONS-Anthony committed Nov 17, 2017
1 parent 00270e5 commit 02230d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helperMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 02230d0

Please sign in to comment.