Skip to content

Commit

Permalink
fix(service release process): fixed save functionality for contract a…
Browse files Browse the repository at this point in the history
…nd consent
  • Loading branch information
lavanya-bmw committed Aug 11, 2023
1 parent eede97c commit f3e5286
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,13 @@ export default function CommonContractAndConsent({
await updateAgreementConsents(updateData)
.unwrap()
.then(() => {
if (
buttonLabel === ButtonLabelTypes.SAVE_AND_PROCEED &&
type === ReleaseProcessTypes.APP_RELEASE
) {
dispatch(increment())
} else {
dispatch(serviceReleaseStepIncrement())
buttonLabel === ButtonLabelTypes.SAVE && setContractSnackbar(true)
if (buttonLabel === ButtonLabelTypes.SAVE_AND_PROCEED) {
type === ReleaseProcessTypes.APP_RELEASE && dispatch(increment())
type === ReleaseProcessTypes.SERVICE_RELEASE &&
dispatch(serviceReleaseStepIncrement())
}
setAgreementData([])
buttonLabel === ButtonLabelTypes.SAVE && setContractSnackbar(true)
})
.catch(() => {
setContractNotification(true)
Expand Down

0 comments on commit f3e5286

Please sign in to comment.