Skip to content

Commit

Permalink
fix billing card
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Jun 5, 2024
1 parent 15109cd commit 138a897
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function CardSection() {
const theme = useTheme();
const [fundList] = useOnyx(ONYXKEYS.FUND_LIST);

const defaultCard = useMemo(() => Object.values(fundList ?? {}).find((card) => card.isDefault), [fundList]);
const defaultCard = useMemo(() => Object.values(fundList ?? {}).find((card) => card.accountData?.additionalData?.isBillingCard), [fundList]);

const cardMonth = useMemo(() => DateUtils.getMonthNames(preferredLocale)[(defaultCard?.accountData?.cardMonth ?? 1) - 1], [defaultCard?.accountData?.cardMonth, preferredLocale]);

Expand Down

0 comments on commit 138a897

Please sign in to comment.