diff --git a/src/common/enums.ts b/src/common/enums.ts
index 09baa33e6..adb652b17 100644
--- a/src/common/enums.ts
+++ b/src/common/enums.ts
@@ -96,6 +96,11 @@ export enum Network {
MAINNET = 'mainnet'
}
+export enum PolygonNetworks {
+ TESTNET = 'Polygon Testnet',
+ MAINNET = 'Polygon Mainnet'
+}
+
export enum CommonConstants {
BALANCELIMIT = 0.01
}
diff --git a/src/commonComponents/SchemaCard.tsx b/src/commonComponents/SchemaCard.tsx
index e00d582a2..92a420024 100644
--- a/src/commonComponents/SchemaCard.tsx
+++ b/src/commonComponents/SchemaCard.tsx
@@ -10,6 +10,7 @@ import { getFromLocalStorage } from '../api/Auth';
import { limitedAttributesLength, storageKeys } from '../config/CommonConstant';
import type { IAttribute, ISchemaCardProps, ISchemaData } from './interface';
import CustomCheckbox from './CustomCheckbox';
+import { Ledgers, Network, PolygonNetworks } from '../common/enums';
const SchemaCard = (props: ISchemaCardProps) => {
const orgDidDetails = async () => {
@@ -134,11 +135,14 @@ const handleCheckboxChange = (checked: boolean, schemaData?: ISchemaData) => {
- Ledger: {props?.issuerDid?.split(":")[2]} + Ledger: + {props.issuerDid?.includes(Ledgers.POLYGON) + ? (props.issuerDid?.includes(Network.TESTNET) ? PolygonNetworks.TESTNET : PolygonNetworks.MAINNET) + : props?.issuerDid?.split(":")[2]}
- } +)}