Skip to content

Commit

Permalink
Fixed display of value when deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
yveshauser committed Jun 27, 2023
1 parent a89e2c1 commit 9f4bc86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Component/ApplyInputs.purs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Control.Monad.Maybe.Trans (MaybeT(..), runMaybeT)
import Control.Monad.Reader.Class (asks)
import Data.Array.ArrayAL as ArrayAL
import Data.Array.NonEmpty (NonEmptyArray)
import Data.BigInt.Argonaut (toString)
import Data.BigInt.Argonaut as BigInt
import Data.DateTime.Instant (instant, toDateTime, unInstant)
import Data.Either (Either(..))
Expand Down Expand Up @@ -115,9 +116,9 @@ mkDepositFormComponent = do
let
choices = RadioButtonFieldChoices do
let
toChoice idx (DepositInput _ _ _ value _) = do
toChoice idx (DepositInput _ _ token value _) = do
let
label = show value
label = toString value <> " " <> show token
radioFieldChoice (show idx) (DOOM.text label)
{ switch: true
, choices: ArrayAL.fromNonEmptyArray $ mapWithIndex toChoice depositInputs
Expand Down

0 comments on commit 9f4bc86

Please sign in to comment.