Skip to content

Commit

Permalink
patch: debug saveToSite value
Browse files Browse the repository at this point in the history
  • Loading branch information
tinashechiraya authored Apr 16, 2024
1 parent 8cdfd0c commit d07f8c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const ScoreForm: React.FC<ScoreFormProps> = ({ onCancel, additionalData, setSide
const site_id = localStorage.getItem('siteId') || siteId;
form_data.append('observationId', JSON.stringify(obs_id));
form_data.append('siteId', JSON.stringify(site_id));
console.log('saveToSite val: ',saveToExistingSite)
if(saveToExistingSite === true){
form_data.append('saveToSite', JSON.stringify(true));
}else form_data.append('saveToSite', JSON.stringify(false));
Expand All @@ -182,7 +183,7 @@ const ScoreForm: React.FC<ScoreFormProps> = ({ onCancel, additionalData, setSide
setIsCloseSiteDialogOpen(true);
}else {
if(response.data.message === "")
setErrorMessage("something unexpecttedly went wrong please contact the system administrator via the contact us form.");
setErrorMessage("something unexpectedly went wrong, please try again. If the issue should persist ,contact the system administrator via the contact us form describing the problem you're facing.");
else setErrorMessage(response.data.message)
setIsErrorModalOpen(true);
}
Expand Down

0 comments on commit d07f8c0

Please sign in to comment.