Skip to content

Commit

Permalink
Fixed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Chomp committed Jan 8, 2025
1 parent 61532d9 commit 8e016b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/helpers/QuestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ export class QuestHelper {
continue;
}

const statusesDict: Record<QuestStatus, number> = {};
const statusesDict = {} as Record<QuestStatus, number>;
for (const status of statuses) {
statusesDict[status] = this.timeUtil.getTimestamp();
}
Expand Down Expand Up @@ -1124,7 +1124,7 @@ export class QuestHelper {
}
} else {
// Failing an entirely new quest that doesn't exist in profile
const statusTimers: Record<QuestStatus, number> = {};
const statusTimers = {} as Record<QuestStatus, number>;
statusTimers[QuestStatus.Fail] = this.timeUtil.getTimestamp();
const questData: IQuestStatus = {
qid: questToFail._id,
Expand Down

0 comments on commit 8e016b0

Please sign in to comment.