Skip to content

Commit 39a7236

Browse files
committed
action fixes
1 parent 04ba4e6 commit 39a7236

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/components/PlaidCardFeedIcon.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Image from './Image';
1010
type PlaidCardFeedIconProps = {
1111
plaidUrl: string;
1212
style?: StyleProp<ViewStyle>;
13-
isLarge?: boolean
13+
isLarge?: boolean;
1414
};
1515

1616
function PlaidCardFeedIcon({plaidUrl, style, isLarge}: PlaidCardFeedIconProps) {
@@ -19,13 +19,13 @@ function PlaidCardFeedIcon({plaidUrl, style, isLarge}: PlaidCardFeedIconProps) {
1919
<View style={[style]}>
2020
<Image
2121
source={{uri: plaidUrl}}
22-
style={isLarge ? styles.plaidIcon: styles.plaidIconSmall}
22+
style={isLarge ? styles.plaidIcon : styles.plaidIconSmall}
2323
cachePolicy="memory-disk"
2424
/>
2525
<Icon
26-
src={isLarge ? Illustrations.PlaidCompanyCardDetailLarge: Illustrations.PlaidCompanyCardDetail}
27-
height={isLarge ? variables.cardPreviewHeight: variables.cardIconHeight}
28-
width={isLarge ? variables.cardPreviewWidth: variables.cardIconWidth}
26+
src={isLarge ? Illustrations.PlaidCompanyCardDetailLarge : Illustrations.PlaidCompanyCardDetail}
27+
height={isLarge ? variables.cardPreviewHeight : variables.cardIconHeight}
28+
width={isLarge ? variables.cardPreviewWidth : variables.cardIconWidth}
2929
/>
3030
</View>
3131
);

src/pages/workspace/companyCards/WorkspaceCompanyCardPageEmptyState.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ function WorkspaceCompanyCardPageEmptyState({policy, shouldShowGBDisclaimer}: Wo
4343
const {translate} = useLocalize();
4444
const styles = useThemeStyles();
4545
const {shouldUseNarrowLayout} = useResponsiveLayout();
46-
const [isActingAsDelegate] = useOnyx(ONYXKEYS.ACCOUNT, {selector: (account) => !!account?.delegatedAccess?.delegate});
46+
const [isActingAsDelegate] = useOnyx(ONYXKEYS.ACCOUNT, {selector: (account) => !!account?.delegatedAccess?.delegate, canBeMissing: true});
4747
const [isNoDelegateAccessMenuVisible, setIsNoDelegateAccessMenuVisible] = useState(false);
48-
const [allWorkspaceCards] = useOnyx(ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST);
48+
const [allWorkspaceCards] = useOnyx(ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST, {canBeMissing: true});
4949
const shouldShowExpensifyCardPromotionBanner = !hasIssuedExpensifyCard(policy?.workspaceAccountID ?? CONST.DEFAULT_NUMBER_ID, allWorkspaceCards);
5050
const workspaceAccountID = policy?.workspaceAccountID ?? CONST.DEFAULT_NUMBER_ID;
5151

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function CardInstructionsStep({policyID}: CardInstructionsStepProps) {
4040
const styles = useThemeStyles();
4141
const {isOffline} = useNetwork();
4242

43-
const [addNewCard] = useOnyx(ONYXKEYS.ADD_NEW_COMPANY_CARD);
43+
const [addNewCard] = useOnyx(ONYXKEYS.ADD_NEW_COMPANY_CARD, {canBeMissing: true});
4444

4545
const data = addNewCard?.data;
4646
const feedProvider = data?.feedType ?? CONST.COMPANY_CARD.FEED_BANK_NAME.VISA;

0 commit comments

Comments
 (0)