Skip to content

Commit

Permalink
fix: Flag update scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa committed Jun 5, 2024
1 parent 6dbcb4a commit ce8911a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/web/components/saveFeatureWithValidation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const saveFeatureWithValidation = (cb: () => void) => {
return () => {
export const saveFeatureWithValidation = (cb: (schedule?: boolean) => void) => {
return (schedule: boolean) => {
if (document.getElementById('language-validation-error')) {
openConfirm({
body: 'Your remote config value does not pass validation for the language you have selected. Are you sure you wish to save?',
Expand All @@ -9,7 +9,7 @@ export const saveFeatureWithValidation = (cb: () => void) => {
yesText: 'Save',
})
} else {
cb()
cb(schedule)
}
}
}

0 comments on commit ce8911a

Please sign in to comment.