diff --git a/modules/migration/components/DelegateContractInfo.tsx b/modules/migration/components/DelegateContractInfo.tsx index 76fc7bd54..e2798bb2a 100644 --- a/modules/migration/components/DelegateContractInfo.tsx +++ b/modules/migration/components/DelegateContractInfo.tsx @@ -26,7 +26,7 @@ export default function DelegateContractInfo({ const [modalOpen, setModalOpen] = useState(false); const openModal = () => { - if (!delegate.isAboutToExpire && !delegate.expired) { + if (delegate.version === '2' || (!delegate.isAboutToExpire && !delegate.expired)) { return; } setModalOpen(true); @@ -43,15 +43,23 @@ export default function DelegateContractInfo({ }} onClick={openModal} > - - V1 | - + {delegate.version !== '2' && ( + + V1 | + + )} - {delegate.expired ? 'EXPIRED' : delegate.isAboutToExpire ? 'EXPIRING' : 'EXPIRES'} + {delegate.version === '2' + ? 'NO EXPIRATION' + : delegate.expired + ? 'EXPIRED' + : delegate.isAboutToExpire + ? 'EXPIRING' + : 'EXPIRES'} {' '} - + {delegate.version !== '2' && }