Commit 9474c40f authored by Joachim Schunk's avatar Joachim Schunk
Browse files

use migration detection in show-view

parent 56447746
Pipeline #105365 passed with stages
in 2 minutes and 11 seconds
......@@ -11,7 +11,7 @@
[leukipp.components.exercise-types.calchelper
:refer
[build-latex-string calc-change-fn]]
[leukipp.components.exercise-types.multistep-calculation.migration :as migration]
[leukipp.components.exercise-types.migrate :as migration]
[leukipp.components.exercise-types.multistep-calculation.views.common
:refer
[add-to-selectable-units get-phrase map-params-to-assocs names-map transfer-names]]
......@@ -238,7 +238,7 @@
(defn exercise-renderer [exercise {:keys [result answer on-change]}]
(reagent/with-let [modal-state-atom (reagent/atom {})]
(let [migrated-answer (migration/migrate-answer answer exercise)]
(let [migrated-answer (migration/migrate-answer answer {:exercise exercise})]
[print-multistep-calculation-exercise
{:answer migrated-answer
:exercise exercise
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment