Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #34 from babylonhealth/mazzonem-readme-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Mikolaj Leszczynski authored Nov 9, 2019
2 parents b71a390 + 53aa196 commit dd37760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ private val viewModel by viewModel<CalculatorViewModel>()

override fun onCreate() {
...
addButton.setOnClickListener { viewModel.postAction(AddAction) }
addButton.setOnClickListener { viewModel.sendAction(AddAction) }
}

override fun onStart() {
viewModel.connect(this, actions, ::handleState, ::handleSideEffect)
viewModel.connect(this, ::handleState, ::handleSideEffect)
}

private fun handleState(state: State) {
Expand Down

0 comments on commit dd37760

Please sign in to comment.