Js.String2.length > 0 ? "" : themeObj.spacingUnit
diff --git a/src/Components/SavedCardItem.res b/src/Components/SavedCardItem.res
index e6b3d1130..193d25d5d 100644
--- a/src/Components/SavedCardItem.res
+++ b/src/Components/SavedCardItem.res
@@ -25,11 +25,8 @@ let make = (
_,
) = cvcProps
let cvcRef = React.useRef(Js.Nullable.null)
- let (pickerItemClass, pickerItemLabelClass, pickerItemIconClass) = React.useMemo1(() => {
- isActive
- ? ("PickerItem--selected", "PickerItemLabel--selected", "PickerItemIcon--selected")
- : ("", "", "")
- }, [isActive])
+ let pickerItemClass = isActive ? "PickerItem--selected" : ""
+
let focusCVC = () => {
setCardBrand(._ =>
switch paymentItem.card.scheme {
@@ -84,17 +81,14 @@ let make = (
border="1px solid currentColor"
/>
-
- brandIcon
-
-
+
brandIcon
+
{React.string(`****`)}
{React.string({paymentItem.card.last4Digits})}
{React.string(
@@ -107,13 +101,10 @@ let make = (
{React.string("CVC: ")}
-
+
{
}
}
Window.addEventListener("message", handle)
- Some(
- () => {
- Window.removeEventListener("message", handle)
- },
- )
+ Some(() => Window.removeEventListener("message", handle))
}
let submitPaymentData = callback => {
React.useEffect1(() => {handleMessage(callback, "")}, [callback])