Clear values on extrinsics change (#148)

This commit is contained in:
Jaco Greeff 2018-07-13 09:45:11 +02:00 committed by GitHub
parent 7c912a2cde
commit 2a23e0db46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,6 @@ class Extrinsic extends React.PureComponent<Props, State> {
: new Uint8Array([]);
onChange({
// extrinsic,
isValid,
values: [value]
});
@ -100,7 +99,7 @@ class Extrinsic extends React.PureComponent<Props, State> {
}
onChangeExtrinsic = (extrinsic: SectionItem<Extrinsics>): void => {
this.nextState({ extrinsic } as State);
this.nextState({ extrinsic, values: [] } as State);
}
onChangeValues = (values: Array<RawParam>): void => {