Better error handling

This commit is contained in:
James Cole
2024-02-26 19:54:45 +01:00
parent cd713dc40f
commit 7103098fe7
2 changed files with 6 additions and 0 deletions

View File

@@ -746,6 +746,10 @@ export default {
case 'budget_id':
case 'bill_id':
case 'description':
case 'type':
this.transactions[transactionIndex].errors.source_account = [this.$t('firefly.select_source_account')];
this.transactions[transactionIndex].errors.destination_account = [this.$t('firefly.select_dest_account')];
break;
case 'tags':
this.transactions[transactionIndex].errors[fieldName] = errors.errors[key];
break;