From c8d2355f9d560480bcd9aa632eff9fd5f3985e76 Mon Sep 17 00:00:00 2001 From: Francisco Gindre Date: Mon, 27 Feb 2023 04:21:40 -0300 Subject: [PATCH] [#577] Fix TCA warning (#578) --- .../TransactionAmount/TransactionAmountTextFieldStore.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secant/UI Components/TextFields/TransactionAmount/TransactionAmountTextFieldStore.swift b/secant/UI Components/TextFields/TransactionAmount/TransactionAmountTextFieldStore.swift index 8c65029..1b9c861 100644 --- a/secant/UI Components/TextFields/TransactionAmount/TransactionAmountTextFieldStore.swift +++ b/secant/UI Components/TextFields/TransactionAmount/TransactionAmountTextFieldStore.swift @@ -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) } } }