Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: fix logic for motionDomainId in Payment & Permissions dialogs
Browse files Browse the repository at this point in the history
chinins committed Dec 27, 2021
1 parent 0ea1705 commit b23e6a8
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -284,10 +284,7 @@ const CreatePaymentDialogForm = ({
} else {
setCurrentFromDomain(ROOT_DOMAIN_ID);
}
if (
selectedMotionDomainId !== ROOT_DOMAIN_ID &&
selectedMotionDomainId !== fromDomainId
) {
if (selectedMotionDomainId !== fromDomainId) {
setFieldValue('motionDomainId', fromDomainId);
}
},
Original file line number Diff line number Diff line change
@@ -202,10 +202,7 @@ const PermissionManagementForm = ({
const fromDomainId = parseInt(domainValue, 10);
const selectedMotionDomainId = parseInt(values.motionDomainId, 10);
onDomainSelected(fromDomainId);
if (
selectedMotionDomainId !== ROOT_DOMAIN_ID &&
selectedMotionDomainId !== fromDomainId
) {
if (selectedMotionDomainId !== fromDomainId) {
onMotionDomainChange(fromDomainId);
}
},

0 comments on commit b23e6a8

Please sign in to comment.