Skip to content

Commit

Permalink
Update conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Nov 13, 2024
1 parent 367cdfb commit 3694181
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ function WorkspaceCompanyCardsSettingsFeedNamePage({
);

const submit = ({name}: WorkspaceCompanyCardFeedName) => {
if (!selectedFeed) {
return;
if (selectedFeed) {
CompanyCards.setWorkspaceCompanyCardFeedName(policyID, workspaceAccountID, selectedFeed, name);
}
CompanyCards.setWorkspaceCompanyCardFeedName(policyID, workspaceAccountID, selectedFeed, name);
Navigation.goBack(ROUTES.WORKSPACE_COMPANY_CARDS_SETTINGS.getRoute(policyID));
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ function WorkspaceCompanyCardsSettingsPage({
};

const deleteCompanyCardFeed = () => {
if (!selectedFeed) {
return;
if (selectedFeed) {
CompanyCards.deleteWorkspaceCompanyCardFeed(policyID, workspaceAccountID, selectedFeed);
}
CompanyCards.deleteWorkspaceCompanyCardFeed(policyID, workspaceAccountID, selectedFeed);
setDeleteCompanyCardConfirmModalVisible(false);
Navigation.setNavigationActionToMicrotaskQueue(Navigation.goBack);
};
Expand Down

0 comments on commit 3694181

Please sign in to comment.