Skip to content

Commit

Permalink
Fixed isConfirmed rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ozziest committed Dec 25, 2023
1 parent 4f70f71 commit 9546ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/isConfirmed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getValueViaPath } from "../helpers/getValueViaPath";
import { IContext } from "../Interface";

export default (value: any, context: IContext): boolean => {
const confirmedKey = `${context.key}_confirmed`;
const confirmedKey = `${context.field}_confirmed`;
const confirmedValue = getValueViaPath(context.data, confirmedKey);
return value === confirmedValue;
};

0 comments on commit 9546ce2

Please sign in to comment.