File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
samples/SkyflowElements/src/components/CardBrandChoice Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 88
99const 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' ) {
You can’t perform that action at this time.
0 commit comments