Skip to content

Commit

Permalink
update writting
Browse files Browse the repository at this point in the history
  • Loading branch information
tuan20520342 committed Jul 13, 2024
1 parent 6809346 commit e0f4054
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions engace.web/src/pages/Writing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function Writing() {
},
}}
>
{`<div>${review?.GeneralComment}</div>`}
{`<div>${review?.GeneralComment ?? ""}</div>`}
</MuiMarkdown>
</AccordionDetails>
</Accordion>
Expand Down Expand Up @@ -173,7 +173,7 @@ export default function Writing() {
},
}}
>
{`<div>${review?.ImprovedContent}</div>`}
{`<div>${review?.ImprovedContent ?? ""}</div>`}
</MuiMarkdown>
</>
) : (
Expand Down
7 changes: 3 additions & 4 deletions engace.web/src/services/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ export const AppService = {
},

getEssayReview: (content, level) => {
return baseRequest.get(
`${UrlApi.URL_GET_ESSAY_REVIEW}?content=${encodeURIComponent(
content
)}?englishLevel=${level}`
return baseRequest.post(
`${UrlApi.URL_GET_ESSAY_REVIEW}?englishLevel=${level}`,
content
);
},

Expand Down

0 comments on commit e0f4054

Please sign in to comment.