diff --git a/frontend/src/components/Logs/Status.jsx b/frontend/src/components/Logs/Status.jsx index eacc8a081..85c576852 100644 --- a/frontend/src/components/Logs/Status.jsx +++ b/frontend/src/components/Logs/Status.jsx @@ -9,8 +9,8 @@ import { import { useQuery, gql } from "@apollo/client"; const Status = ({ accountId, functionName, latestHeight }) => { - const hasuraRole = accountId.replace(/[^a-zA-Z0-9]/g, '_'); - const queryName = `${functionName.replace(/[^a-zA-Z0-9]/g, '_')}___metadata`; + const hasuraRole = accountId.replace(/[^a-zA-Z0-9]/g, '_'); // TODO: Support accounts that start with a number + const queryName = `${functionName.replace(/[^a-zA-Z0-9]/g, '_')}___metadata`; // TODO: Rename the query to match new metadata table name const GET_METADATA = gql` query getMetadata { ${queryName} {