File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ update msg model =
44
44
NoOp ->
45
45
model
46
46
47
- Pair1 sub ->
47
+ Pair1 subMsg ->
48
48
let
49
49
pair1 =
50
- Pair . update sub model. pair1
50
+ Pair . update subMsg model. pair1
51
51
52
52
totals =
53
53
Totals . update ( Totals . UpdateRed <| Pair . getRedNum pair1) model. totals
@@ -57,10 +57,10 @@ update msg model =
57
57
in
58
58
{ model | pair1 = pair1, pair2 = pair2, totals = totals }
59
59
60
- Pair2 sub ->
60
+ Pair2 subMsg ->
61
61
let
62
62
pair2 =
63
- Pair . update sub model. pair2
63
+ Pair . update subMsg model. pair2
64
64
65
65
totals =
66
66
Totals . update ( Totals . UpdateRed <| Pair . getRedNum pair2) model. totals
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ type Msg
41
41
update : Msg -> Model -> Model
42
42
update msg model =
43
43
case msg of
44
- PairGreen sub ->
45
- { model | greenCounter = Counter . update sub model. greenCounter, totalClickCount = model. totalClickCount + 1 }
44
+ PairGreen subMsg ->
45
+ { model | greenCounter = Counter . update subMsg model. greenCounter, totalClickCount = model. totalClickCount + 1 }
46
46
47
- PairRed sub ->
48
- { model | redCounter = Counter . update sub model. redCounter, totalClickCount = model. totalClickCount + 1 }
47
+ PairRed subMsg ->
48
+ { model | redCounter = Counter . update subMsg model. redCounter, totalClickCount = model. totalClickCount + 1 }
49
49
50
50
UpdateRed value ->
51
51
{ model | redCounter = Counter . update ( Counter . SetNum value) model. redCounter }
You can’t perform that action at this time.
0 commit comments