diff --git a/src/global/legacy/LegacyMigrationForm.tsx b/src/global/legacy/LegacyMigrationForm.tsx index 76d2b43..6223e38 100644 --- a/src/global/legacy/LegacyMigrationForm.tsx +++ b/src/global/legacy/LegacyMigrationForm.tsx @@ -45,6 +45,9 @@ const [masterPasswordError, setMasterPasswordError] = useState(); + const foundWalletCount = Object.keys(backup.wallets).length; + const foundContactCount = Object.keys(backup.friends).length; + async function onFinish() { const values = await form.validateFields(); const { masterPassword } = values; @@ -125,7 +128,21 @@ onFinish={onFinish} > {/* Description */} -

+

+ +

+ + {/* Found wallet and contact count */} + {foundWalletCount > 0 &&

+ + Detected {{ count: foundWalletCount }} wallets + +

} + {foundContactCount > 0 &&

+ + Detected {{ count: foundContactCount }} contacts + +

} {/* Password input */}