Skip to content

Commit

Permalink
#1289 | fix: checking response with status
Browse files Browse the repository at this point in the history
  • Loading branch information
vedfordev committed Dec 24, 2024
1 parent c17be9b commit 1c29f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adminApp/Organisation.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export const OrganisationCreateComponent = ({ showNotification }) => {
httpClient
.post("/organisation", data)
.then(response => {
if (response.statusText === "Created") {
if (response.status && parseInt(response.status) > 200) {
showNotification(`${data.name} is created successfully`);
setRedirect(true);
}
Expand Down

0 comments on commit 1c29f69

Please sign in to comment.