touchstudy-core 0.1.72 → 0.1.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13723,6 +13723,13 @@ function MyAnswer(_ref) {
13723
13723
  handleSelectQuestionOrder(id);
13724
13724
  toggleCreateQuestion();
13725
13725
  };
13726
+ var formatTimeDiff = function formatTimeDiff(my, top) {
13727
+ var diff = Math.round(my - top);
13728
+ var prefix = "";
13729
+ if (diff < 0) prefix = "-";
13730
+ if (diff > 0) prefix = "+";
13731
+ return "" + prefix + formatTimeSecond(Math.abs(diff), t);
13732
+ };
13726
13733
  var renderQuestions = function renderQuestions(questions) {
13727
13734
  return questions.map(function (question, index) {
13728
13735
  return React__default.createElement("div", {
@@ -13785,7 +13792,7 @@ function MyAnswer(_ref) {
13785
13792
  margin: 0
13786
13793
  },
13787
13794
  className: styles$4["answer-response"] + " " + styles$4["answer-response-" + question.answerResponseSignal]
13788
- }, formatTimeSecond(Math.round(question.topDuration - question.duration), t)) : React__default.createElement("p", {
13795
+ }, formatTimeDiff(question.duration, question.topDuration)) : React__default.createElement("p", {
13789
13796
  style: {
13790
13797
  margin: 0,
13791
13798
  textAlign: "center"