From f963bc12a68a4d2f3ccdcd92f3815f1ed7589f83 Mon Sep 17 00:00:00 2001 From: Andrey Dolgolev Date: Wed, 19 Jan 2022 12:29:51 +0200 Subject: [PATCH] Add fixes. --- frontend/src/components/SubscriptionReport.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/SubscriptionReport.js b/frontend/src/components/SubscriptionReport.js index 05006882..f33b50e3 100644 --- a/frontend/src/components/SubscriptionReport.js +++ b/frontend/src/components/SubscriptionReport.js @@ -45,10 +45,10 @@ const SubscriptionReport = ({ : undefined, [data] ); - const methodKeys = useMemo( + const functionKeys = useMemo( () => - Object.keys(data?.methods ?? {}).length > 0 - ? Object.keys(data?.methods) + Object.keys(data?.functions ?? {}).length > 0 + ? Object.keys(data?.functions) : undefined, [data] ); @@ -190,7 +190,7 @@ const SubscriptionReport = ({ })} )} - {data?.functions && methodKeys && ( + {data?.functions && functionKeys && ( - functions + Functions - {methodKeys.map((key) => { + {functionKeys.map((key) => { return (