File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,24 @@ export class RegistrarInput extends Component {
33
33
'didDocument' : JSON . parse ( this . state . didDocument )
34
34
} ;
35
35
}
36
- if ( "update" === this . state . operation || "deactivate" === this . state . operation ) {
36
+ if ( "update" === this . state . operation ) {
37
37
operation = this . state . operation ;
38
38
data = {
39
39
'jobId' : this . state . jobId ,
40
40
'did' : this . state . did ,
41
41
'options' : JSON . parse ( this . state . options ) ,
42
42
'secret' : JSON . parse ( this . state . secret ) ,
43
- 'didDocument' : JSON . parse ( this . state . didDocument )
43
+ 'didDocumentOperation' : [ 'setDidDocument' ] ,
44
+ 'didDocument' : [ JSON . parse ( this . state . didDocument ) ]
45
+ } ;
46
+ }
47
+ if ( "deactivate" === this . state . operation ) {
48
+ operation = this . state . operation ;
49
+ data = {
50
+ 'jobId' : this . state . jobId ,
51
+ 'did' : this . state . did ,
52
+ 'options' : JSON . parse ( this . state . options ) ,
53
+ 'secret' : JSON . parse ( this . state . secret )
44
54
} ;
45
55
}
46
56
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments