Refactor API response handling in test submission feature to align with server response structure; update ChainsListPage to use 'disabled' prop for button state instead of 'isDisabled', enhancing code clarity and consistency.

This commit is contained in:
2025-12-10 15:13:05 +03:00
parent 7b9cb044fa
commit 86dffc802b
2 changed files with 3 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ export const ChainsListPage: React.FC = () => {
size="xs"
variant="outline"
onClick={() => handleToggleActive(chain, !chain.isActive)}
isDisabled={updatingChainId === chain.id}
disabled={updatingChainId === chain.id}
>
{chain.isActive
? t('challenge.admin.chains.list.status.inactive')