diff --git a/lib/core/extension/base_proposal_model_extension.dart b/lib/core/extension/base_proposal_model_extension.dart index fe8d5b64..de7248d6 100644 --- a/lib/core/extension/base_proposal_model_extension.dart +++ b/lib/core/extension/base_proposal_model_extension.dart @@ -2,6 +2,7 @@ import 'package:hypha_wallet/core/network/models/base_proposal_model.dart'; extension BaseProposalModelExtension on BaseProposalModel { String formatExpiration() { + // TODO(Zied-Saif): use another word instead of 'Expired' if (expiration == null) return 'Expired'; if (isExpired()) { diff --git a/lib/ui/proposals/details/components/proposal_details_view.dart b/lib/ui/proposals/details/components/proposal_details_view.dart index 660068f2..0fe96f80 100644 --- a/lib/ui/proposals/details/components/proposal_details_view.dart +++ b/lib/ui/proposals/details/components/proposal_details_view.dart @@ -141,7 +141,7 @@ class _ProposalDetailsViewState extends State { Padding( padding: const EdgeInsets.symmetric(vertical: 10), child: Text( - '${_proposalDetailsModel.cycleCount} Cycles', + '${_proposalDetailsModel.cycleCount} Cycle${_proposalDetailsModel.cycleCount == 1 ? '' : 's'}', style: context.hyphaTextTheme.reducedTitles, ), ),