Use addcallbackAndRunD
This commit is contained in:
parent
b5cc8d8194
commit
2004c5e606
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ export class MangroveIdentity {
|
|||
constructor(mangroveIdentity: UIEventSource<string>) {
|
||||
const self = this;
|
||||
this._mangroveIdentity = mangroveIdentity;
|
||||
mangroveIdentity.addCallbackAndRun(str => {
|
||||
if (str === undefined || str === "") {
|
||||
mangroveIdentity.addCallbackAndRunD(str => {
|
||||
if (str === "") {
|
||||
return;
|
||||
}
|
||||
mangrove.jwkToKeypair(JSON.parse(str)).then(keypair => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue