From 54ddb0d0148cb5b897e2a7c1404bd837149158f4 Mon Sep 17 00:00:00 2001 From: Greg Matthews Date: Sat, 11 Nov 2017 13:29:59 -0800 Subject: [PATCH] Rename sortValue and tmpSortValue to be more meaningful --- src/app/pages/ShipyardPage.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/pages/ShipyardPage.jsx b/src/app/pages/ShipyardPage.jsx index 20359dba..74404f45 100644 --- a/src/app/pages/ShipyardPage.jsx +++ b/src/app/pages/ShipyardPage.jsx @@ -247,18 +247,18 @@ export default class ShipyardPage extends Page { let shipRows = new Array(shipSummaries.length); let detailRows = new Array(shipSummaries.length); - let sortValue = null; + let lastShipSortValue = null; let backgroundHighlight = false; for (let s of shipSummaries) { - let tmpSortValue = s[shipPredicate]; + let shipSortValue = s[shipPredicate]; if( shipPredicateIndex != undefined ) { - tmpSortValue = tmpSortValue[shipPredicateIndex]; + shipSortValue = shipSortValue[shipPredicateIndex]; } - if( tmpSortValue != sortValue ) { + if( shipSortValue != lastShipSortValue ) { backgroundHighlight = !backgroundHighlight; - sortValue = tmpSortValue; + lastShipSortValue = shipSortValue; } detailRows[i] = this._shipRowElement(s, translate, units, fInt, formats.f1, backgroundHighlight);