Skip to content

Commit

Permalink
chore: update table_guard_edits.py (#2055)
Browse files Browse the repository at this point in the history
Typos
---------

Co-authored-by: Fred Lefévère-Laoide <[email protected]>
Co-authored-by: Fabien Lelaquais <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2024
1 parent 5b5e1d6 commit ce960ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/gui/examples/controls/table_guard_edits.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def check_add(state: State, var_name: str, payload: dict):
def force_salary(state: State, var_name: str, payload: dict):
# Get the salary proposal from the callback's payload
proposed_salary = payload["value"]
# Round it the the nearest multiple of 5000
# Round it to the nearest multiple of 5000
proposed_salary = round(proposed_salary / 500) * 500
# Set it as the value to be stored in the dataset
payload["value"] = proposed_salary
Expand Down

0 comments on commit ce960ac

Please sign in to comment.