Add polygon to subscriptions filter and resolve problems with are keys.

pull/404/head
Andrey Dolgolev 2021-11-14 16:28:44 +02:00
rodzic 1bb249f021
commit 21ab83b4ef
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -210,7 +210,7 @@ const Analytics = () => {
{name} {name}
</Text> </Text>
<SubscriptionReport <SubscriptionReport
url={s3PresignedURLs.week} url={s3PresignedURLs.month}
id={v4()} id={v4()}
type={v4()} type={v4()}
/> />

Wyświetl plik

@ -80,7 +80,8 @@ const NewDashboard = (props) => {
]); ]);
const filterFn = (item, inputValue) => const filterFn = (item, inputValue) =>
item.subscription_type_id === "ethereum_blockchain" && (item.subscription_type_id === "ethereum_blockchain" ||
item.subscription_type_id === "polygon_blockchain") &&
(!inputValue || (!inputValue ||
item.address.toUpperCase().includes(inputValue.toUpperCase()) || item.address.toUpperCase().includes(inputValue.toUpperCase()) ||
item.label.toUpperCase().includes(inputValue.toUpperCase())); item.label.toUpperCase().includes(inputValue.toUpperCase()));

Wyświetl plik

@ -35,6 +35,6 @@ export const getDashboard = (dashboardId) => {
export const getDashboardLinks = (dashboardId) => { export const getDashboardLinks = (dashboardId) => {
return http({ return http({
method: "GET", method: "GET",
url: `${API_URL}/dashboards/${dashboardId}/data_links`, url: `${API_URL}/dashboards/${dashboardId}/stats`,
}); });
}; };