[#577] Fix TCA warning (#578)

This commit is contained in:
Francisco Gindre 2023-02-27 04:21:40 -03:00 committed by GitHub
parent db07850fad
commit c8d2355f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ struct TransactionAmountTextFieldReducer: ReducerProtocol {
let decimalString = numberFormatter.string(maxCurrencyConvertedValue) ?? ""
state.textFieldState.text = "\(decimalString)".redacted
return Effect(value: .updateAmount)
return EffectTask(value: .updateAmount)
case .clearValue:
state.textFieldState.text = "".redacted
@ -95,7 +95,7 @@ struct TransactionAmountTextFieldReducer: ReducerProtocol {
let decimalString = numberFormatter.string(NSDecimalNumber(decimal: newValue)) ?? ""
state.textFieldState.text = "\(decimalString)".redacted
return Effect(value: .updateAmount)
return EffectTask(value: .updateAmount)
}
}
}