@@ -69,14 +69,14 @@ export const getButtonPaymentData = (n: number, periodString: string, paymentLis
6969 } ,
7070 total : {
7171 payments : 1 ,
72- revenue : p . values . values
72+ revenue : p . values
7373 }
7474 }
7575 buttonPaymentData [ b . id ] = newEntry
7676 return
7777 }
7878 prevObj . total . payments += 1
79- prevObj . total . revenue = sumQuoteValues ( prevObj . total . revenue , p . values . values )
79+ prevObj . total . revenue = sumQuoteValues ( prevObj . total . revenue , p . values )
8080 prevObj . displayData . isXec = prevObj . displayData . isXec === true || ( p . networkId === XEC_NETWORK_ID )
8181 prevObj . displayData . isBch = prevObj . displayData . isBch === true || ( p . networkId === BCH_NETWORK_ID )
8282 const lastPayment = prevObj . displayData . lastPayment as number
@@ -100,8 +100,8 @@ export const sumPaymentsValue = function (paymentList: Payment[]): QuoteValues {
100100 }
101101
102102 for ( const p of paymentList ) {
103- ret . usd = ret . usd . plus ( p . values . values . usd )
104- ret . cad = ret . cad . plus ( p . values . values . cad )
103+ ret . usd = ret . usd . plus ( p . values . usd )
104+ ret . cad = ret . cad . plus ( p . values . cad )
105105 }
106106 return ret
107107}
@@ -161,11 +161,11 @@ const generateDashboardDataFromStream = async function (
161161 if ( paybuttonIds !== undefined && paybuttonIds . length > 0 ) {
162162 const paymentButtonIds = payment . buttonDisplayDataList . map ( b => b . id )
163163 if ( paymentButtonIds . some ( item => paybuttonIds . includes ( item ) ) ) {
164- revenueAccumulators [ period ] [ index ] = sumQuoteValues ( revenueAccumulators [ period ] [ index ] , payment . values . values )
164+ revenueAccumulators [ period ] [ index ] = sumQuoteValues ( revenueAccumulators [ period ] [ index ] , payment . values )
165165 paymentCounters [ period ] [ index ] += 1
166166 }
167167 } else {
168- revenueAccumulators [ period ] [ index ] = sumQuoteValues ( revenueAccumulators [ period ] [ index ] , payment . values . values )
168+ revenueAccumulators [ period ] [ index ] = sumQuoteValues ( revenueAccumulators [ period ] [ index ] , payment . values )
169169 paymentCounters [ period ] [ index ] += 1
170170 }
171171 }
@@ -315,13 +315,13 @@ function processButtonData (
315315 lastPayment : payment . timestamp
316316 } ,
317317 total : {
318- revenue : payment . values . values ,
318+ revenue : payment . values ,
319319 payments : 1
320320 }
321321 }
322322 } else {
323323 const buttonData = buttonDataAccumulators [ period ] [ button . id ]
324- buttonData . total . revenue = sumQuoteValues ( buttonData . total . revenue , payment . values . values )
324+ buttonData . total . revenue = sumQuoteValues ( buttonData . total . revenue , payment . values )
325325 buttonData . total . payments += 1
326326 buttonData . displayData . lastPayment = Math . max (
327327 buttonData . displayData . lastPayment ?? 0 ,
0 commit comments