Skip to content

Commit

Permalink
chore: clean code.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Nov 20, 2024
1 parent 9be810b commit a1b88c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Page/Object.elm
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,8 @@ componentView selectedImpact detailedComponents ( quantity, name, processes ) it
text ""
]
, if not collapsed then
List.map2 (processView selectedImpact) processes (Simulator.extractItems itemResults)
Simulator.extractItems itemResults
|> List.map2 (processView selectedImpact) processes

else
[]
Expand All @@ -634,7 +635,7 @@ processView : Definition -> ( Query.Amount, Process ) -> Results -> Html Msg
processView selectedImpact ( amount, process ) itemResults =
let
floatAmount =
amount |> Query.amountToFloat
Query.amountToFloat amount
in
tr [ class "fs-7" ]
[ td [] []
Expand All @@ -647,7 +648,7 @@ processView selectedImpact ( amount, process ) itemResults =
floatAmount |> Volume.cubicMeters |> Format.m3

_ ->
text ((floatAmount |> String.fromFloat) ++ " " ++ process.unit)
text (String.fromFloat floatAmount ++ " " ++ process.unit)
]
, td [ class "align-middle text-truncate w-100" ]
[ text process.displayName ]
Expand Down

0 comments on commit a1b88c7

Please sign in to comment.