This commit is contained in:
Nicole Dresselhaus 2015-08-03 12:52:48 +02:00
parent baff2727cd
commit 75982cf813

View File

@ -11,7 +11,7 @@ getWalletR = loginOrDo $ (\(uid,user) -> do
apiKey <- runDB $ getBy $ UniqueApiUser uid apiKey <- runDB $ getBy $ UniqueApiUser uid
acc <- case apiKey of acc <- case apiKey of
Just (Entity _ (Api _ k v)) -> do Just (Entity _ (Api _ k v)) -> do
a <- liftIO $ getAccountBalance man (ApiComplete (T.ApiKey (VCode v) (KeyId k)) (T.CharacterId (userCharId user))) a <- liftIO $ getStandings man (mkComplete k v (userCharId user))
return (Just a) return (Just a)
Nothing -> return Nothing Nothing -> return Nothing
defaultLayout $ [whamlet| defaultLayout $ [whamlet|