From 21db6cd41a76fe00c51c926b63c2bff3de3b83b1 Mon Sep 17 00:00:00 2001 From: Arush Date: Thu, 21 Mar 2024 14:50:24 +0530 Subject: [PATCH] fix(savedcarditem): fixed Dynamic Fields not rendering for some saved payment methods --- src/Components/SavedCardItem.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/SavedCardItem.res b/src/Components/SavedCardItem.res index 88cb94861..d14cd0cfa 100644 --- a/src/Components/SavedCardItem.res +++ b/src/Components/SavedCardItem.res @@ -50,7 +50,7 @@ let make = ( let isRenderCvv = isCard && paymentItem.requiresCvv let paymentMethodType = switch paymentItem.paymentMethodType { - | Some(paymentMethodType) => paymentMethodType->Utils.snakeToTitleCase + | Some(paymentMethodType) => paymentMethodType | None => "debit" } @@ -100,7 +100,7 @@ let make = (
{React.string(paymentItem.card.last4Digits)}
- :
{React.string(paymentMethodType)}
} + :
{React.string(paymentMethodType->Utils.snakeToTitleCase)}
}