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.
package/dist/index.js CHANGED
@@ -13720,6 +13720,13 @@ function MyAnswer(_ref) {
13720
13720
  handleSelectQuestionOrder(id);
13721
13721
  toggleCreateQuestion();
13722
13722
  };
13723
+ var formatTimeDiff = function formatTimeDiff(my, top) {
13724
+ var diff = Math.round(my - top);
13725
+ var prefix = "";
13726
+ if (diff < 0) prefix = "-";
13727
+ if (diff > 0) prefix = "+";
13728
+ return "" + prefix + formatTimeSecond(Math.abs(diff), t);
13729
+ };
13723
13730
  var renderQuestions = function renderQuestions(questions) {
13724
13731
  return questions.map(function (question, index) {
13725
13732
  return React__default.createElement("div", {
@@ -13782,7 +13789,7 @@ function MyAnswer(_ref) {
13782
13789
  margin: 0
13783
13790
  },
13784
13791
  className: styles$4["answer-response"] + " " + styles$4["answer-response-" + question.answerResponseSignal]
13785
- }, formatTimeSecond(Math.round(question.topDuration - question.duration), t)) : React__default.createElement("p", {
13792
+ }, formatTimeDiff(question.duration, question.topDuration)) : React__default.createElement("p", {
13786
13793
  style: {
13787
13794
  margin: 0,
13788
13795
  textAlign: "center"