diff --git a/src/components/organization/WalletSpinup.tsx b/src/components/organization/WalletSpinup.tsx
index 9129ed7fb..a6251e46c 100644
--- a/src/components/organization/WalletSpinup.tsx
+++ b/src/components/organization/WalletSpinup.tsx
@@ -310,23 +310,15 @@ const SharedAgentForm = ({
setSelectedDid('');
setGeneratedKeys(null);
}}
- id="method"
- name="method"
- className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-11"
+ id="method" name="method" className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-11"
>
- {mappedData &&
- Object.keys(mappedData)?.map((ledger) => (
-
+ {mappedData && Object.keys(mappedData)?.map((ledger) => (
+
))}
- {formikHandlers?.errors?.method &&
- formikHandlers?.touched?.method && (
-
- {formikHandlers?.errors?.method}
-
+ {formikHandlers?.errors?.method && formikHandlers?.touched?.method && (
+ {formikHandlers?.errors?.method}
)}
@@ -400,19 +392,13 @@ const SharedAgentForm = ({
setSelectedDid('');
}}
value={selectedNetwork}
- id="ledger"
- name="ledger"
- className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-11"
+ id="ledger" name="ledger" className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-11"
>
- {mappedData &&
- selectedLedger &&
- mappedData[selectedLedger] &&
+ {mappedData && selectedLedger && mappedData[selectedLedger] &&
Object.keys(mappedData[selectedLedger])?.map(
(ledger) => (
-
+
),
)}