Skip to content

Commit

Permalink
Clean up debug loggig
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Nov 3, 2024
1 parent 7b33a7d commit 7edb023
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,10 @@ export class HomeComponent {
}

const { web5, did: userDid } = await Web5.Web5.connect();
console.log(web5, userDid);

// const urlParams = new URLSearchParams(window.location.search);
// const did = urlParams.get('did');

console.log('From DID:', did);

const response = await web5.dwn.records.query({
from: did,
message: {
Expand All @@ -57,15 +54,11 @@ export class HomeComponent {
},
});

console.log('Response:', response.records);

// Reset all previously loaded data.
this.data.groups = {};

if (response.records) {
for (const record of response.records) {
console.log('REcord:', record);

const data = await record.data.json();

const entry = {
Expand Down Expand Up @@ -93,8 +86,6 @@ export class HomeComponent {
this.loading = false;
this.data.loaded = true;
this.data.complete = true;

console.log(this.data.groups);
}

sanitizeHtml(html: string): SafeHtml {
Expand Down

0 comments on commit 7edb023

Please sign in to comment.