Skip to content

Commit

Permalink
#1289 | change: minor change in comparing status code
Browse files Browse the repository at this point in the history
  • Loading branch information
vedfordev committed Dec 25, 2024
1 parent 668deb9 commit f2df202
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.status && parseInt(response.status) >= 200) {
if (response.status && parseInt(response.status) >= 200 && parseInt(response.status) < 300) {
showNotification(`${data.name} is created successfully`);
setRedirect(true);
}
Expand Down

0 comments on commit f2df202

Please sign in to comment.