Skip to content

Commit

Permalink
refactor: remove s
Browse files Browse the repository at this point in the history
  • Loading branch information
Zied-Dahmani committed Sep 24, 2024
1 parent 095ac10 commit 7c0837d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/core/extension/base_proposal_model_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class _ProposalDetailsViewState extends State<ProposalDetailsView> {
Padding(
padding: const EdgeInsets.symmetric(vertical: 10),
child: Text(
'${_proposalDetailsModel.cycleCount} Cycles',
'${_proposalDetailsModel.cycleCount} Cycle${_proposalDetailsModel.cycleCount == 1 ? '' : 's'}',
style: context.hyphaTextTheme.reducedTitles,
),
),
Expand Down

0 comments on commit 7c0837d

Please sign in to comment.