Skip to content

Commit

Permalink
fix: notes is (nothing) not working
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen committed Dec 17, 2024
1 parent 94666a2 commit ceee85f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/loot-core/src/server/accounts/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,12 @@ export class Condition {

eval(object) {
let fieldValue = object[this.field];
const type = this.type;

if (type === 'string') {
fieldValue ??= '';
}

if (fieldValue === undefined) {
return false;
}
Expand All @@ -368,8 +374,6 @@ export class Condition {
fieldValue = fieldValue.toLowerCase();
}

const type = this.type;

if (type === 'number' && this.options) {
if (this.options.outflow) {
if (fieldValue > 0) {
Expand Down

0 comments on commit ceee85f

Please sign in to comment.