fix transfers display logic
This commit is contained in:
parent
d1358cc96f
commit
254c174bba
1 changed files with 3 additions and 4 deletions
|
@ -163,11 +163,9 @@ transfersDisplay warnNoScript = do
|
|||
if null transfers
|
||||
then ifM (lift $ showIntro <$> getWebAppState)
|
||||
( introDisplay ident
|
||||
, noop
|
||||
, $(widgetFile "transfers")
|
||||
)
|
||||
else do
|
||||
lift $ modifyWebAppState $ \s -> s { showIntro = False }
|
||||
$(widgetFile "transfers")
|
||||
else $(widgetFile "transfers")
|
||||
|
||||
transfersDisplayIdent :: Text
|
||||
transfersDisplayIdent = "transfers"
|
||||
|
@ -188,6 +186,7 @@ introDisplay ident = do
|
|||
let barelyenough = n == 2
|
||||
let morethanenough = n > 2
|
||||
$(widgetFile "intro")
|
||||
lift $ modifyWebAppState $ \s -> s { showIntro = False }
|
||||
where
|
||||
counter = map show ([1..] :: [Int])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue