Browse Source

fix: Renamed variables for clearness.

master
Denis Thiessen 6 months ago
parent
commit
776d63df3e
  1. 8
      src/App.js

8
src/App.js

@ -60,10 +60,10 @@ const getLatinSquareOrder = function(participantNumber) {
continue;
}
const el = latinSquareElement[indexElement + 1];
const elIndex = findIndexOfOrderElement(el, latinSquareElement);
const nextLatinSquareIndex = latinSquareElement[(elIndex)];
latinSquareRedirectOrder.push(("study-page-" + nextLatinSquareIndex));
const nextOrderElement = latinSquareElement[(indexElement + 1)];
const nextOrderElementIndex = findIndexOfOrderElement(nextOrderElement, latinSquareElement);
const nextRedirctElement = latinSquareElement[nextOrderElementIndex];
latinSquareRedirectOrder.push(("study-page-" + nextRedirctElement ));
}
return latinSquareRedirectOrder;

Loading…
Cancel
Save