diff --git a/lib/presentation/create_investment_presenter.dart b/lib/presentation/create_investment_presenter.dart index 49283bc..a8dbc0a 100644 --- a/lib/presentation/create_investment_presenter.dart +++ b/lib/presentation/create_investment_presenter.dart @@ -127,7 +127,6 @@ class CreateInvestmentPresenter extends Presenter { viewState.investedOn = investmentToUpdate.getLastInvestedOn(); viewState.basketId = investmentToUpdate.basketId; viewState.value = value; - viewState.oneTimeInvestment = investmentToUpdate.transactions.length == 1; viewState.riskLevel = investmentToUpdate.riskLevel; viewState.onInvestmentFetched = SingleEvent(null); }); @@ -154,7 +153,6 @@ class CreateInvestmentViewState { DateTime? investedOn = DateTime.now(); double? value; DateTime? maturityDate; - bool oneTimeInvestment = false; SingleEvent? onInvestmentCreated; SingleEvent? onInvestmentFetched; SingleEvent? onIRRCleared; diff --git a/lib/ui/widgets/create_investment_dialog.dart b/lib/ui/widgets/create_investment_dialog.dart index cb636fd..812082d 100644 --- a/lib/ui/widgets/create_investment_dialog.dart +++ b/lib/ui/widgets/create_investment_dialog.dart @@ -160,7 +160,8 @@ class _CreateInvestmentPage extends PageState