Skip to content

Commit

Permalink
Auto-commit: 2024-05-07 18:03:21
Browse files Browse the repository at this point in the history
Files:
example/dist/index.js
src/ng/ng.ts

https://github.com/jacklehamster/autocommit
  • Loading branch information
jacklehamster committed May 8, 2024
1 parent 985498f commit 287e216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ class t {
async unlockMedal(I) {
if (!this.#O.user)
return;
console.log("unlocking", I, "for", this.#O.user);
console.log("unlocking", I, "for", this.#O.user.name);
const O = await this.getMedals(), Y = O.filter((V) => V.name === I)[0];
if (Y)
return new Promise((V) => {
Expand Down
2 changes: 1 addition & 1 deletion src/ng/ng.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class NewgroundsWrapper {
async unlockMedal(medal_name: string): Promise<Medal | undefined> {
/* If there is no user attached to our ngio object, it means the user isn't logged in and we can't unlock anything */
if (!this.#ngio.user) return;
console.log("unlocking", medal_name, "for", this.#ngio.user);
console.log("unlocking", medal_name, "for", this.#ngio.user.name);
const medals = await this.getMedals();
const medal = medals.filter((medal) => medal.name === medal_name)[0];
if (medal) {
Expand Down

0 comments on commit 287e216

Please sign in to comment.