Skip to content

Commit d961342

Browse files
committed
Fix #106 Revoke the requirement to have enough tokens to register the node
1 parent 2948ddd commit d961342

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

build/ui/src/components/Setup/RegisterNode.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,6 @@ const RegisterNode: React.FC<RegisterNodeProps> = ({
149149
}
150150
};
151151

152-
const enoughTokens = () => {
153-
return (
154-
enoughEthBalance(data?.nodeStatus, data?.networkRplPrice) && enoughRpl
155-
);
156-
};
157-
158152
function ErrorAlertBox(): JSX.Element {
159153
return (
160154
<>
@@ -217,7 +211,6 @@ const RegisterNode: React.FC<RegisterNodeProps> = ({
217211
<Button
218212
disabled={
219213
!canRegisterNode?.canRegister ||
220-
!enoughTokens() ||
221214
!isValidAddressEntered(addressEntered) ||
222215
!actionsEnabled ||
223216
isLoading

0 commit comments

Comments
 (0)