Use latest release of registry-sdk

This commit is contained in:
Adw8 2024-07-26 18:52:32 +05:30
parent 57bf787ce3
commit 702fb3ebaa
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@cerc-io/registry-sdk": "^0.2.2",
"@cerc-io/registry-sdk": "^0.2.3",
"@cosmjs/stargate": "^0.32.4",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",

View File

@ -28,6 +28,7 @@ const TermsAndConditionsCard = ({ handleAccept, handleRoleChange }: { handleAcce
const handleRadioChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setSelectedRole(event.target.value as Role);
handleRoleChange((event.target as HTMLInputElement).value === Role.Validator ? Role.Validator : Role.Participant);
setChecked(false);
};
return (