Skip to content

Commit

Permalink
Merge pull request #90 from vtex-apps/fix/organization-request-status
Browse files Browse the repository at this point in the history
feat: remove duplicated validation regarding one to many feature
  • Loading branch information
arturmagalhaesjr authored Jan 9, 2023
2 parents 2525414 + 0e5af23 commit d114d71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- it was removed the duplicated validation due to the one to many feature


## [1.17.1] - 2022-12-20

### Changed
Expand Down
8 changes: 1 addition & 7 deletions react/components/RequestOrganizationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,7 @@ const RequestOrganizationForm: FC = () => {
.then(response => {
const statusRequest = response.data.createOrganizationRequest.status

if (statusRequest === 'pending') {
toastMessage(messages.toastPending)
setFormState({
...formState,
isSubmitting: false,
})
} else if (statusRequest === 'approved') {
if (statusRequest === 'approved') {
toastMessage(messages.toastApproved)
setFormState({
...formState,
Expand Down

0 comments on commit d114d71

Please sign in to comment.