Skip to content

Commit

Permalink
Removed unnecessary parse to object
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarcia360 committed Feb 7, 2020
1 parent 0dde3ca commit 2546951
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TransactionURI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ export class TransactionURI implements URIScheme {
* Build the URI
*/
build(): string {
const data = typeof this.data === 'object' ? JSON.stringify(this.data) : this.data;
const base = TransactionURI.PROTOCOL
+ TransactionURI.ACTION
+ '?data=' + data;
+ '?data=' + this.data;
const generationHash = this.generationHash ? '&generationHash=' + this.generationHash : '';
const endpoint = this.endpoint ? '&endpoint=' + this.endpoint : '';
const webhook = this.webhook ? '&webhook=' + this.webhook : '';
Expand Down

0 comments on commit 2546951

Please sign in to comment.