Skip to content

Commit

Permalink
Fix parsing issue of description (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Leonard <[email protected]>
  • Loading branch information
Robert-H-Leonard and Robert Leonard authored Jul 23, 2024
1 parent 49d177b commit 3851fc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway-ui/src/useGatewayPortal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const useGatewayPortal = (props: GatewayPortalProps) => {

// Call network contract to fetch network data

const networkId = await networkClient.getNetworkId(networkNameInBytes);
const networkId = await networkClient.getNetworkId(networkName);
const networkResponse = await networkClient.getNetwork(networkId.toString());

// Verify if userAddress has a valid pass
Expand All @@ -100,7 +100,7 @@ export const useGatewayPortal = (props: GatewayPortalProps) => {
hasValidPass: hasValidToken,
networkInfo: {
name: networkNameInBytes,
description: "This network can meet your KYC needs by ID verification and verifying liveliness",
description: utils.toUtf8String(await networkResponse.description),
feeToken: feeTokenAddress == ZERO_ADDRESS ? "BNB" : feeTokenAddress
},
validPassData: {
Expand All @@ -122,7 +122,7 @@ export const useGatewayPortal = (props: GatewayPortalProps) => {
hasValidPass: hasValidToken,
networkInfo: {
name: networkNameInBytes,
description: "This network can meet your KYC needs by ID verification and verifying liveliness",
description: utils.toUtf8String(await networkResponse.description),
feeToken: feeTokenAddress == ZERO_ADDRESS ? "BNB" : feeTokenAddress
},
invalidPassData: {
Expand Down

0 comments on commit 3851fc7

Please sign in to comment.