Skip to content

Commit

Permalink
Also updating the conversion logic to catch the percent issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicScrewdriver committed Nov 15, 2024
1 parent b586b71 commit 2377645
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ export const convertInputNumberWidgetOptions = (
}
// Check if the widget is an input-number
if (widgets[key].type === "input-number") {
// If the answerType is not number or percent, we need to provide
// the answer form for the numeric-input widget
const provideAnswerForm =
widgets[key].options.answerType !== "number";
widgets[key].options.answerType !== "number" &&
widgets[key].options.answerType !== "percent";
// We need to determine the mathFormat for the numeric-input widget
const mathFormat =
widgets[key].options.answerType === "rational"
Expand Down

0 comments on commit 2377645

Please sign in to comment.