From b92d804ab603cb60a8efbabfd8646587161bb46f Mon Sep 17 00:00:00 2001 From: Doris Benda Date: Mon, 18 Nov 2024 19:39:03 +0700 Subject: [PATCH] Small fixes --- compliant-reward-distribution/README.md | 8 ++++++-- .../frontend/src/components/Admin/AdminGetAccountData.tsx | 4 +++- .../src/components/Admin/AdminGetPendingApprovals.tsx | 4 +++- .../frontend/src/components/proof/Proof.tsx | 2 +- .../frontend/src/wallet-connection.tsx | 3 +-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/compliant-reward-distribution/README.md b/compliant-reward-distribution/README.md index 297e9217..964da1ca 100644 --- a/compliant-reward-distribution/README.md +++ b/compliant-reward-distribution/README.md @@ -26,10 +26,14 @@ However, the easiest option is to use [docker-compose](https://docs.docker.com/c For this to work, you should do the following: -1. Set the following environment variables: +1. Initialize local dependencies: +``` +git submodule update --init --recursive +``` +2. Set the following environment variables: - (Optional) Set the `ADMIN_ACCOUNT` variable to an account address. This account can read and write to the database. - (Optional) Set the `CONCORDIUM_NODE` to the gRPC endpoint of the node you want to use. Defaults to `https://grpc.testnet.concordium.com:20000`. -2. Run `docker-compose up` to build and start all the services. +3. Run `docker-compose up` to build and start all the services. e.g. diff --git a/compliant-reward-distribution/frontend/src/components/Admin/AdminGetAccountData.tsx b/compliant-reward-distribution/frontend/src/components/Admin/AdminGetAccountData.tsx index 5ed3c9f2..4dd79356 100644 --- a/compliant-reward-distribution/frontend/src/components/Admin/AdminGetAccountData.tsx +++ b/compliant-reward-distribution/frontend/src/components/Admin/AdminGetAccountData.tsx @@ -81,7 +81,9 @@ export function AdminGetAccountData(props: Props) {
- {accountData &&
{JSONbig.stringify(accountData, undefined, 2)}
} + {accountData && ( +
{JSONbig.stringify(accountData, undefined, 2)}
+ )} {error && {error}} diff --git a/compliant-reward-distribution/frontend/src/components/Admin/AdminGetPendingApprovals.tsx b/compliant-reward-distribution/frontend/src/components/Admin/AdminGetPendingApprovals.tsx index 3b5392ea..62fcb9ca 100644 --- a/compliant-reward-distribution/frontend/src/components/Admin/AdminGetPendingApprovals.tsx +++ b/compliant-reward-distribution/frontend/src/components/Admin/AdminGetPendingApprovals.tsx @@ -64,7 +64,9 @@ export function AdminGetPendingApprovals(props: Props) { {error && {error}} - {pendingApprovals &&
{JSONbig.stringify(pendingApprovals, undefined, 2)}
} + {pendingApprovals && ( +
{JSONbig.stringify(pendingApprovals, undefined, 2)}
+ )} diff --git a/compliant-reward-distribution/frontend/src/components/proof/Proof.tsx b/compliant-reward-distribution/frontend/src/components/proof/Proof.tsx index d5e9326c..c5cc2519 100644 --- a/compliant-reward-distribution/frontend/src/components/proof/Proof.tsx +++ b/compliant-reward-distribution/frontend/src/components/proof/Proof.tsx @@ -234,7 +234,7 @@ const Proof = () => { {validProof ? (