Skip to content

Commit

Permalink
fix nits to deploy to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Mar 13, 2024
1 parent 12bd8ce commit aadbd08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,11 @@ function Player() {

const getLoadoutInSlot = useCallback((slot) => {
if (playerData?.equipment?.Id === undefined) {
return "None"
return "None";
}

let loadoutRoot = playerData.equipment.Items.find(i => i._id === playerData.equipment.Id)
let loadoutItem = playerData.equipment.Items.find(i => i.slotId === slot && i.parentId === loadoutRoot._id)
let loadoutRoot = playerData.equipment.Items.find(i => i._id === playerData.equipment.Id);
let loadoutItem = playerData.equipment.Items.find(i => i.slotId === slot && i.parentId === loadoutRoot._id);

if (loadoutItem === undefined) {
return "None";
Expand Down Expand Up @@ -569,8 +569,8 @@ function Player() {
return false;
}

let itemImage = undefined
let itemLabel = ''
let itemImage = undefined;
let itemLabel = '';
let itemDisplay = getItemDisplay(itemData);
if (itemDisplay) {
itemImage = itemDisplay.image;
Expand Down

0 comments on commit aadbd08

Please sign in to comment.