Disable convert expense option if not configured

This commit is contained in:
Hillel Coren 2024-01-15 13:32:56 +02:00
parent 06f066390b
commit 5e14167e55
1 changed files with 2 additions and 1 deletions

View File

@ -1277,7 +1277,8 @@ class _MatchWithdrawalsState extends State<_MatchWithdrawals> {
) )
: AppButton( : AppButton(
label: localization.createExpense, label: localization.createExpense,
onPressed: viewModel.state.isSaving onPressed: viewModel.state.isSaving ||
(_selectedVendor == null && _selectedCategory == null)
? null ? null
: () { : () {
final viewModel = widget.viewModel; final viewModel = widget.viewModel;