From cd5385cf6bd2589fa1e3b12ca135ef3ab2db583a Mon Sep 17 00:00:00 2001 From: Prasanna Anbazhagan Date: Sat, 30 Mar 2024 14:10:34 +0530 Subject: [PATCH] Hide invested value on editing investment page --- lib/presentation/create_investment_presenter.dart | 2 -- lib/ui/widgets/create_investment_dialog.dart | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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