Skip to content

Commit

Permalink
adjust build
Browse files Browse the repository at this point in the history
  • Loading branch information
Janderson Souza Matias authored and Janderson Souza Matias committed Jul 26, 2023
1 parent 3f5d5c0 commit 43df384
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/pages/Competencies/CompetenceForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,17 @@ const CompetenceForm: React.FC<Props> = ({
</Text>
)}

{competenceValues?.questions?.length > 0 && (
<Box my="24px" w="100%" h="1px" bg="#eee" />
)}
{competenceValues?.questions &&
competenceValues?.questions?.length > 0 && (
<Box my="24px" w="100%" h="1px" bg="#eee" />
)}

{showQuestionForm && editIndex === null && (
<Box w="full">
<Text mb="24px" fontWeight={600}>{`Question ${
competenceValues?.questions?.length + 1 || 1
(competenceValues?.questions &&
competenceValues?.questions?.length + 1) ||
1
}`}</Text>
<FormControl id="title" isRequired>
<FormLabel>Title</FormLabel>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Schools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const SchoolsPage: React.FC = () => {

const deleteSchool = async () => {
setIsLoadingDelete(true);
if (schoolToDelete) await SchoolService.DeleteSchool(schoolToDelete?.id);
if (schoolToDelete)
await SchoolService.DeleteSchool(schoolToDelete?.id || "");
setIsLoadingDelete(false);
onCloseDeleteModal();
loadSchools();
Expand Down

0 comments on commit 43df384

Please sign in to comment.