Skip to content

Commit

Permalink
If approvalRequired is falsy, then just return the signed txn (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina authored Apr 12, 2024
1 parent 76f2876 commit 64f122c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/backend-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ export class BackendApiService {
})
.pipe(
switchMap((signed) => {
//if (signed.approvalRequired) {
if (signed.approvalRequired) {
return this.identityService
.launch('/approve', {
tx: res.TransactionHex,
Expand All @@ -775,9 +775,9 @@ export class BackendApiService {
return { ...res, ...approved };
})
);
//} else {
// return of({ ...res, ...signed });
//}
} else {
return of({ ...res, ...signed });
}
})
)
)
Expand Down

0 comments on commit 64f122c

Please sign in to comment.