Skip to content

Commit

Permalink
fix: differentiate between number and integer input types
Browse files Browse the repository at this point in the history
  • Loading branch information
9sneha-n committed Jun 14, 2024
1 parent a8a9b56 commit 9087abf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/data/utils/questionHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@ export const getQuestion = (
}

case "NUMBER":
case "INTEGER": {
case "INTEGER":
case "INTEGER_ZERO_OR_POSITIVE":
case "INTEGER_NEGATIVE":
case "INTEGER_POSITIVE": {
const intQ: NumberQuestion = {
...base,
type: "number",
numberType: "INTEGER",
numberType: valueType,
value: dataValue ? dataValue : "",
};
return intQ;
Expand Down

0 comments on commit 9087abf

Please sign in to comment.