File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
packages/payment-widget/src/lib Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 4545 let selectedCurrency: Currency | null = null ;
4646 let connectionCheckInterval: ReturnType <typeof setInterval > | null = null ;
4747 let currentPaymentStep: PaymentStep = " currency" ;
48- let currentBuyerInfo: BuyerInfo = buyerInfo || {
49- address: {},
50- };
48+
5149 let scrollPosition = 0 ;
5250
5351 // Effects
5452 $ : currencyDetails = getSupportedCurrencies (supportedCurrencies );
5553
5654 $ : isConnected = false ;
5755 $ : isModalOpen = false ;
56+ $ : currentBuyerInfo = buyerInfo || {
57+ address: {},
58+ };
5859
5960 $ : {
6061 if (isModalOpen && ! isConnected ) {
7273
7374 $ : toggleBodyScroll (isModalOpen );
7475
76+ $ : {
77+ if (buyerInfo ) {
78+ currentBuyerInfo = buyerInfo ;
79+ } else {
80+ currentBuyerInfo = {
81+ address: {},
82+ };
83+ }
84+ }
85+
7586 // Methods
7687 async function checkConnectionStatus() {
7788 if (isCheckingConnection ) return ;
You can’t perform that action at this time.
0 commit comments