Skip to content

Commit

Permalink
quick bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Liew Mouawad committed Apr 9, 2024
1 parent 2b1c032 commit 771c3cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function TimesheetCard(props) {

function resubmitTimesheet() {
if (hasResubmitted != true) {
if (/^([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/.test(newStartTime) && /^([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/.test(newEndTime)) {
if (/^(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/.test(newStartTime) && /^(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/.test(newEndTime)) {
console.log("Resubmitting timesheet " + props.id)
fetch('http://127.0.0.1:5000/update_timesheet/' + props.id, {
method: "PUT",
Expand Down

0 comments on commit 771c3cc

Please sign in to comment.