[fix] offset naive dates error (#3104)
This commit is contained in:
@@ -229,11 +229,10 @@ window.PaymentsPageLogic = {
|
||||
'GET',
|
||||
`/api/v1/payments/stats/count?${params}&count_by=status`
|
||||
)
|
||||
data.sort((a, b) => a.field - b.field)
|
||||
this.searchOptions.status = data
|
||||
.map(s => s.field)
|
||||
.sort()
|
||||
.reverse()
|
||||
|
||||
data.sort((a, b) => a.field - b.field).reverse()
|
||||
|
||||
this.searchOptions.status = data.map(s => s.field)
|
||||
this.paymentsStatusChart.data.datasets[0].data = data.map(s => s.total)
|
||||
this.paymentsStatusChart.data.labels = [...this.searchOptions.status]
|
||||
|
||||
@@ -419,11 +418,8 @@ window.PaymentsPageLogic = {
|
||||
data: [],
|
||||
backgroundColor: [
|
||||
'rgb(0, 205, 86)',
|
||||
'rgb(54, 162, 235)',
|
||||
'rgb(255, 99, 132)',
|
||||
'rgb(255, 5, 86)',
|
||||
'rgb(25, 205, 86)',
|
||||
'rgb(255, 205, 250)'
|
||||
'rgb(64, 72, 78)',
|
||||
'rgb(255, 99, 132)'
|
||||
],
|
||||
hoverOffset: 4
|
||||
}
|
||||
|
||||
@@ -1112,13 +1112,6 @@ window.WalletPageLogic = {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'g.wallet.id'(newVal, oldVal) {
|
||||
try {
|
||||
this.fetchChartData()
|
||||
} catch (error) {
|
||||
console.warn(`Chart creation failed: ${error}`)
|
||||
}
|
||||
},
|
||||
'g.updatePayments'(newVal, oldVal) {
|
||||
this.parse.show = false
|
||||
if (this.receive.paymentHash === this.g.updatePaymentsHash) {
|
||||
|
||||
Reference in New Issue
Block a user