This commit is contained in:
Daniel Hougaard
2025-09-04 02:54:53 +02:00
parent e29a0e487e
commit 912cd5d20a

View File

@@ -265,9 +265,13 @@ export const VaultPlatformModal = ({ onClose }: Props) => {
"!cursor-not-allowed !border-mineshaft-600 !bg-mineshaft-600 !opacity-40"
)}
onClick={() => {
if (el.isCustom && !isCustomMigrationAvailable?.data?.enabled) {
return;
}
if (el.isCustom && !isCustomMigrationAvailable?.data?.enabled) return;
field.onChange(el.value);
}}
onKeyDown={(e) => {
if (e.key !== "Enter") return;
if (el.isCustom && !isCustomMigrationAvailable?.data?.enabled) return;
field.onChange(el.value);
}}