Skip to content

Commit

Permalink
Fix null reference in aspect sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Jun 14, 2024
1 parent 7964bcc commit edb13ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/loadout-drawer/loadout-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,9 @@ export function getLoadoutSubclassFragmentCapacity(
fallbackToCurrent: boolean,
): number {
if (item.item.sockets) {
const aspectSocketIndices = item.item.sockets.categories.find((c) =>
aspectSocketCategoryHashes.includes(c.category.hash),
)!.socketIndexes;
const aspectSocketIndices =
item.item.sockets.categories.find((c) => aspectSocketCategoryHashes.includes(c.category.hash))
?.socketIndexes ?? [];
const aspectDefs =
item.loadoutItem.socketOverrides &&
filterMap(aspectSocketIndices, (aspectSocketIndex) => {
Expand Down

0 comments on commit edb13ec

Please sign in to comment.