Skip to content

Commit 00dc315

Browse files
committed
SK-2101 Update sample
1 parent 2d449a3 commit 00dc315

File tree

1 file changed

+2
-2
lines changed
  • samples/SkyflowElements/src/components/CardBrandChoice

1 file changed

+2
-2
lines changed

samples/SkyflowElements/src/components/CardBrandChoice/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88

99
const CardBrandChoice = () => {
1010
// Use this state to update cardschema list to provide choice
11-
const [scheme,setScheme] = useState<typeof CardType[]>([]);
11+
const [scheme,setScheme] = useState<CardType[]>([]);
1212

1313
// Use this to aviod unnesscary bin api calls.
1414
const binUpdate = useRef(false);
@@ -116,7 +116,7 @@ const CardBrandChoice = () => {
116116

117117
// Handle to parse card scheme from the bin api response.
118118
const getCardSchems = (cardData:any)=>{
119-
const schemeList:any[] = [];
119+
const schemeList:CardType[] = [];
120120
// cardData will results in array of length more than 1 if it is cobranded.
121121
cardData.forEach((card:any)=>{
122122
if(card.card_scheme === 'VISA'){

0 commit comments

Comments
 (0)