Skip to content

Commit

Permalink
don't show conversion functiosn for decimal and localdate
Browse files Browse the repository at this point in the history
  • Loading branch information
bekand committed Feb 8, 2024
1 parent 15c1241 commit 8fa0f5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Morphir/Visual/ViewValue.elm
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,15 @@ viewValueByLanguageFeature config value =
Value.uncurryApply fun arg
in

case (function, args) of
( Value.Reference _ ( [ [ "morphir" ], [ "s", "d", "k" ] ], [ [ "decimal" ] ], [ "from", "float" ] ), [ argValue ] ) ->
viewValue config argValue

( Value.Reference _ ( [ [ "morphir" ], [ "s", "d", "k" ] ], [ [ "local", "date" ] ], [ "from", "i", "s", "o" ] ), [ argValue ] ) ->
viewValue config argValue

ViewApply.view config definitionBody (viewValue config) function args applyValue
_ ->
ViewApply.view config definitionBody (viewValue config) function args applyValue

Value.LetDefinition _ _ _ _ ->
let
Expand Down

0 comments on commit 8fa0f5d

Please sign in to comment.