Skip to content

Commit

Permalink
hide initAmount if it's zero in edit tx page
Browse files Browse the repository at this point in the history
  • Loading branch information
cassc committed Feb 20, 2022
1 parent fe7981d commit 7b4b153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view/transaction_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class TransactionEditState extends State<TransactionEditPage> {
}

Widget _amountField() {
String initAmount = (_tx.amount == 0) ? '0' : '${_tx.amount}';
String initAmount = (_tx.amount == 0) ? '' : '${_tx.amount}';
return TextFormField(
validator: (val) {
try {
Expand Down

0 comments on commit 7b4b153

Please sign in to comment.