File tree Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,17 @@ export const dailyTransfersQuery = (limit = 30) =>
38
38
variables : { limit } ,
39
39
refetchInterval : "60 seconds" ,
40
40
writeData : data => {
41
- dailyTransfers . data = data . pipe ( Option . map ( d => d . v2_stats_transfers_daily_count ) )
41
+ // Only show testnet 10 transfers
42
+ dailyTransfers . data = data . pipe (
43
+ Option . map ( d => {
44
+ const modifiedData = [ ...d . v2_stats_transfers_daily_count ]
45
+ const len = modifiedData . length
46
+ for ( let i = Math . max ( 0 , len - 10 ) ; i < len ; i ++ ) {
47
+ modifiedData [ i ] = { ...modifiedData [ i ] , count : 0 }
48
+ }
49
+ return modifiedData
50
+ } )
51
+ )
42
52
} ,
43
53
writeError : error => {
44
54
dailyTransfers . error = error
Original file line number Diff line number Diff line change @@ -68,17 +68,7 @@ onMount(() => {
68
68
{/if }
69
69
</div >
70
70
71
- <Card divided >
72
- <A class ="block p-4" href ="/explorer/transfers" external ={false }
73
- >View all transfers</A
74
- >
75
- <A class ="block p-4" href ="/explorer/packets" external ={false }
76
- >View all packets</A
77
- >
78
- </Card >
79
-
80
71
<!-- Daily Transfers Chart -->
81
- <!--
82
72
<Card class =" h-80 relative" divided >
83
73
<div class =" p-4 gap-4 absolute top-0 left-0 border-b-0 w-full z-10" >
84
74
<div class =" flex justify-between items-center" >
@@ -98,5 +88,13 @@ onMount(() => {
98
88
onHoverChange ={(day ) => hoveredDay = day }
99
89
/>
100
90
</Card >
101
- !-->
91
+
92
+ <Card divided >
93
+ <A class ="block p-4" href ="/explorer/transfers" external ={false }
94
+ >View all transfers</A
95
+ >
96
+ <A class ="block p-4" href ="/explorer/packets" external ={false }
97
+ >View all packets</A
98
+ >
99
+ </Card >
102
100
</Sections >
You can’t perform that action at this time.
0 commit comments