Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions app/services/announcements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,6 @@ export class AnnouncementsService extends Service {
const req = this.formRequest(endpoint);
try {
const resp = await jfetch<{ updates: IAnnouncementsInfo[]; lastUpdatedAt: number }>(req);

// HACK: API can return a sparse array of updates, which gets deserialized as an
// object with number keys. Check for this and convert it to an array if necessary.
if (resp.updates && !Array.isArray(resp.updates)) {
resp.updates = Object.values(resp.updates);
}

console.debug('Fetched product updates:', resp);
return resp;
} catch (e: unknown) {
Expand Down
Loading