diff --git a/staking-dashboard/src/components/ATPDetailsModal/ATPDetailsModal.tsx b/staking-dashboard/src/components/ATPDetailsModal/ATPDetailsModal.tsx index 5f227a02e..421645a1d 100644 --- a/staking-dashboard/src/components/ATPDetailsModal/ATPDetailsModal.tsx +++ b/staking-dashboard/src/components/ATPDetailsModal/ATPDetailsModal.tsx @@ -342,7 +342,7 @@ export const ATPDetailsModal = ({ atp, isOpen, onClose, onWithdrawSuccess, onRef Error: Staker contract address not found - ) : !rollupVersion ? ( + ) : rollupVersion === undefined ? (
Loading stake details... diff --git a/staking-dashboard/src/components/Registration/RegistrationStake.tsx b/staking-dashboard/src/components/Registration/RegistrationStake.tsx index 0eec6004f..80bfc289d 100644 --- a/staking-dashboard/src/components/Registration/RegistrationStake.tsx +++ b/staking-dashboard/src/components/Registration/RegistrationStake.tsx @@ -116,7 +116,7 @@ export const RegistrationStake = ({ onComplete }: RegistrationStakeProps) => { const handleAddValidatorToQueue = (index: number) => { const keystore = uploadedKeystores[index] - if (!rollupVersion === undefined || !selectedAtp || !activationThreshold || completedValidatorsWithQueue.has(keystore.attester)) return + if (rollupVersion === undefined || !selectedAtp || !activationThreshold || completedValidatorsWithQueue.has(keystore.attester)) return const transaction = buildValidatorTransaction(keystore) if (!transaction) return @@ -144,7 +144,7 @@ export const RegistrationStake = ({ onComplete }: RegistrationStakeProps) => { } const handleAddAllToQueue = () => { - if (!selectedAtp || !rollupVersion === undefined || uploadedKeystores.length === 0) return + if (!selectedAtp || rollupVersion === undefined || uploadedKeystores.length === 0) return if (!areAllKeystoresValid) { showAlert('error', 'Invalid keystores detected') return