aboutsummaryrefslogtreecommitdiff
path: root/client/src/View/Income/Reducer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/View/Income/Reducer.hs')
-rw-r--r--client/src/View/Income/Reducer.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/View/Income/Reducer.hs b/client/src/View/Income/Reducer.hs
index 5b346cb..092d9b3 100644
--- a/client/src/View/Income/Reducer.hs
+++ b/client/src/View/Income/Reducer.hs
@@ -9,7 +9,7 @@ import qualified Data.Text as T
import Reflex.Dom (Dynamic, Event, MonadWidget)
import qualified Reflex.Dom as R
-import Common.Model (IncomesAndCount)
+import Common.Model (IncomePage)
import Loadable (Loadable (..))
import qualified Loadable as Loadable
@@ -28,9 +28,9 @@ data In t a b c = In
data Action
= LoadPage Int
- | GetResult (Either Text IncomesAndCount)
+ | GetResult (Either Text IncomePage)
-reducer :: forall t m a b c. MonadWidget t m => In t a b c -> m (Dynamic t (Loadable IncomesAndCount))
+reducer :: forall t m a b c. MonadWidget t m => In t a b c -> m (Dynamic t (Loadable IncomePage))
reducer input = do
postBuild <- R.getPostBuild
@@ -60,7 +60,7 @@ reducer input = do
where
pageUrl p =
- "api/v2/incomes?page="
+ "api/incomes?page="
<> (T.pack . show $ p)
<> "&perPage="
<> (T.pack . show $ perPage)