Skip to content

Commit d2da68a

Browse files
committed
Merge remote-tracking branch 'origin/main' into Rory-ProposalPoliceResponsesConversations
2 parents 1821bda + 3b45d93 commit d2da68a

4 files changed

Lines changed: 8 additions & 13 deletions

File tree

src/libs/Navigation/helpers/linkTo/index.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,9 @@ export default function linkTo(navigation: NavigationContainerRef<RootNavigatorP
255255
} else {
256256
// Navigate within the existing TAB_NAVIGATOR (tab switch) rather than pushing a new one.
257257
const lastRouteInMatchingFullScreen = matchingFullScreenRoute.state?.routes?.at(-1);
258-
const additionalAction = CommonActions.navigate({
259-
name: NAVIGATORS.TAB_NAVIGATOR,
260-
params: {
261-
screen: matchingFullScreenRoute.name,
262-
params: lastRouteInMatchingFullScreen
263-
? {screen: lastRouteInMatchingFullScreen.name, params: lastRouteInMatchingFullScreen.params}
264-
: matchingFullScreenRoute.params,
265-
},
258+
const additionalAction = CommonActions.navigate(NAVIGATORS.TAB_NAVIGATOR, {
259+
screen: matchingFullScreenRoute.name,
260+
params: lastRouteInMatchingFullScreen ? {screen: lastRouteInMatchingFullScreen.name, params: lastRouteInMatchingFullScreen.params} : matchingFullScreenRoute.params,
266261
});
267262
navigation.dispatch(additionalAction);
268263
}

src/libs/actions/CompanyCards.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function addNewCompanyCardsFeed(
219219
}
220220

221221
const feedType = CardUtils.getFeedType(cardFeed, cardFeeds);
222-
const newSelectedFeed = getCardFeedWithDomainID(feedType, workspaceAccountID) as CompanyCardFeedWithDomainID;
222+
const newSelectedFeed = getCardFeedWithDomainID(feedType, workspaceAccountID);
223223

224224
const optimisticData: Array<OnyxUpdate<typeof ONYXKEYS.COLLECTION.LAST_SELECTED_FEED | typeof ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER>> = [
225225
{
@@ -1275,7 +1275,7 @@ function importCSVCompanyCards({
12751275
{
12761276
onyxMethod: Onyx.METHOD.MERGE,
12771277
key: `${ONYXKEYS.COLLECTION.LAST_SELECTED_FEED}${policyID}`,
1278-
value: feedNameWithDomainID as CompanyCardFeedWithDomainID,
1278+
value: feedNameWithDomainID,
12791279
},
12801280
];
12811281

src/pages/workspace/companyCards/WorkspaceCompanyCardFeedSelectorPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function WorkspaceCompanyCardFeedSelectorPage({route}: WorkspaceCompanyCardFeedS
155155
if (!feed.fundID) {
156156
return;
157157
}
158-
const feedValue = getCardFeedWithDomainID(feed.feed, feed.fundID) as CompanyCardFeedWithDomainID;
158+
const feedValue = getCardFeedWithDomainID(feed.feed, feed.fundID);
159159
linkCardFeedToPolicy(feed.fundID, policyID, CONST.COMPANY_CARD.LINK_FEED_TYPE.COMPANY_CARD, feed?.country, feed.feed)
160160
.then(() => {
161161
updateSelectedFeed(feedValue, policyID);

src/pages/workspace/companyCards/addNew/CardInstructionsStep.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Navigation from '@navigation/Navigation';
2020

2121
import CONST from '@src/CONST';
2222
import ONYXKEYS from '@src/ONYXKEYS';
23-
import type {CardFeedProvider, CompanyCardFeedWithDomainID} from '@src/types/onyx/CardFeeds';
23+
import type {CardFeedProvider} from '@src/types/onyx/CardFeeds';
2424

2525
import React from 'react';
2626
import {View} from 'react-native';
@@ -59,7 +59,7 @@ function CardInstructionsStep({policyID}: CardInstructionsStepProps) {
5959

6060
const submit = () => {
6161
if (isStripeFeedProvider && policyID) {
62-
updateSelectedFeed(getCardFeedWithDomainID(feedProvider, workspaceAccountID) as CompanyCardFeedWithDomainID, policyID);
62+
updateSelectedFeed(getCardFeedWithDomainID(feedProvider, workspaceAccountID), policyID);
6363
Navigation.goBack();
6464
return;
6565
}

0 commit comments

Comments
 (0)