Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
VachetVirginie committed Jul 31, 2024
1 parent 7ec7f49 commit 5f1b476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ export default defineComponent({
:hint="hint"
:label="label"
:persistent-hint="true"
:rules="rules"
:rules="[... rules, warningRules]"
:readonly="range"
:value="
lastTypeAddedDate === 'date'
Expand Down
5 changes: 2 additions & 3 deletions packages/synapse-bridge/src/rules/notAfterToday/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ export function notAfterTodayFn(
if (!value) {
return true
}
console.log(isDateAfter(TODAY, value))
return isDateAfter(TODAY, value) || ruleMessage(errorMessages, 'default')

return (
!isDateAfter(TODAY, value) || ruleMessage(errorMessages, 'default')
)
}
}

Expand Down

0 comments on commit 5f1b476

Please sign in to comment.