Skip to content

Commit

Permalink
Fix the company id showing something wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKleineKobini committed Feb 14, 2025
1 parent 0df8628 commit 2af3ab8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"date": false,
"logs": {
"features": [],
"fixes": [],
"fixes": [{ "message": "Fix the company id showing something wrong.", "contributor": "DeKleineKobini" }],
"changes": [{ "message": "Change layout of preferences page on mobiles.", "contributor": "TheFoxMan" }],
"removed": []
}
Expand Down
6 changes: 3 additions & 3 deletions extension/scripts/features/company-id/ttCompanyID.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
isOwnCompany ? "div.company-wrap > div.title-black" : "div.company-details-wrap > div.company-details > div.title-black"
);

const id = await readCompanyDetails();
if (!id) throw new Error("Company ID could not be found.");
const details = await readCompanyDetails();
if (!details) throw new Error("Company ID could not be found.");

container.appendChild(document.newElement({ type: "span", text: ` [${id}]`, id: "tt-company-id" }));
container.appendChild(document.newElement({ type: "span", text: ` [${details.id}]`, id: "tt-company-id" }));
}

function removeID() {
Expand Down

0 comments on commit 2af3ab8

Please sign in to comment.