File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -459,10 +459,10 @@ const StatsBoxGrid: React.FC<IProps> = () => {
459
459
460
460
const fetchTxCount = async ( ) : Promise < void > => {
461
461
try {
462
- const { result } = await getData < Array < IFetchTxResponse > > (
462
+ const response = await getData < Array < IFetchTxResponse > > (
463
463
`${ process . env . GATSBY_FUNCTIONS_PATH } /txs`
464
464
)
465
- const data = result
465
+ const data = response
466
466
. map ( ( { unixTimeStamp, transactionCount } ) => ( {
467
467
timestamp : parseInt ( unixTimeStamp ) * 1000 , // unix milliseconds
468
468
value : transactionCount ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const lambda = async (apiKey: string): Promise<HandlerResponse> => {
19
19
const { data } = response
20
20
return {
21
21
statusCode : 200 ,
22
- body : JSON . stringify ( data ) ,
22
+ body : JSON . stringify ( data . result ) ,
23
23
}
24
24
} catch ( error ) {
25
25
console . error ( error )
You can’t perform that action at this time.
0 commit comments