Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
David Kadlček committed Aug 26, 2024
1 parent 0f2a53d commit 0b28bfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ struct ExampleTipKitView: View {

VStack {
HStack {
Text(L10n.recipe_tipkit_remaining_title(viewModel.state.remainigTapsToShowTip))
Text(L10n.recipe_tipkit_remaining_title(viewModel.state.remainingTapsToShowTip))

if viewModel.state.remainigTapsToShowTip > 0 {
if viewModel.state.remainingTapsToShowTip > 0 {
Button(
action: {
viewModel.onIntent(.tapToShowTip)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExampleTipKitViewModel: BaseViewModel, ObservableObject, ViewModel {
@Published private(set) var state: State = State()

struct State {
var remainigTapsToShowTip: Int = 3
var remainingTapsToShowTip: Int = 3
}

// MARK: Intent
Expand All @@ -47,7 +47,7 @@ class ExampleTipKitViewModel: BaseViewModel, ObservableObject, ViewModel {
private func handleTapToShowTip() async {
guard #available(iOS 17, *) else { return }

state.remainigTapsToShowTip -= 1
state.remainingTapsToShowTip -= 1
await RuleTip.remainToShow.donate()
}
}

0 comments on commit 0b28bfb

Please sign in to comment.