Skip to content

Commit 0dff142

Browse files
committed
Fix build warnings outside of PR scope but in the same file.
1 parent f149da7 commit 0dff142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleCollectCashView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct PointOfSaleCollectCashView: View {
6262
await submitCashAmount()
6363
}
6464
}
65-
.onChange(of: textFieldViewModel.amount) { newValue in
65+
.onChange(of: textFieldViewModel.amount) { _, newValue in
6666
textFieldAmountInput = newValue
6767
updateChangeDueMessage()
6868
}
@@ -105,7 +105,7 @@ struct PointOfSaleCollectCashView: View {
105105
.frame(minHeight: geometry.size.height)
106106
.animation(.easeInOut, value: errorMessage)
107107
.animation(.easeInOut, value: changeDueMessage != nil)
108-
.onChange(of: textFieldAmountInput) { _ in
108+
.onChange(of: textFieldAmountInput) { _, _ in
109109
errorMessage = nil
110110
}
111111
.onReceive(Publishers.keyboardFrame) {

0 commit comments

Comments
 (0)