Skip to content

Commit

Permalink
Merge pull request #963 from the-hideout/shoreline-map-update
Browse files Browse the repository at this point in the history
Shoreline map update
  • Loading branch information
Razzmatazzz authored Jul 13, 2024
2 parents 80cd984 + a35d6e5 commit 4f002e8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/data/maps.json
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,7 @@
"author": "Shebuka",
"authorLink": "https://github.com/TarkovTracker/tarkovdata/",
"svgPath": "https://assets.tarkov.dev/maps/svg/Shoreline-Ground_Level.svg",
"tilePath": "https://assets.tarkov.dev/maps/shoreline/main/{z}/{x}/{y}.png",
"tilePath": "https://assets.tarkov.dev/maps/shoreline/main_spring/{z}/{x}/{y}.png",
"layers": [
{
"name": "Underground",
Expand Down
22 changes: 11 additions & 11 deletions src/modules/property-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import i18n from '../i18n.js';

const zonesFormat = (zones) => {
return zones
?.map((zoneName) => {
if (zoneName === zoneName.toUpperCase()) {
return zoneName.charAt(0).toUpperCase() + zoneName.substr(1).toLowerCase();
}

return zoneName;
})
.filter(Boolean)
.sort()
.join(' · ')
?.map((zoneName) => {
if (zoneName === zoneName.toUpperCase()) {
return zoneName.charAt(0).toUpperCase() + zoneName.substr(1).toLowerCase();
}

return zoneName;
})
.filter(Boolean)
.sort()
.join(' · ');
}

const ignoreCategories = [
Expand Down Expand Up @@ -51,7 +51,7 @@ const formatter = (key, value, id) => {
}
value = value.value;
}
if (typeof value === 'object') {
if (typeof value === 'object' && value !== null) {
if (Array.isArray(value)) {
value = [...value];
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/quest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ function Quest() {
})
.reduce((elements, current, index) => {
if (elements.length > 0) {
elements.push(<li key={`or-${index}`}><span style={{verticalAlign: 'middle', minHeight: '64px', display: 'inline-block', padding: '0px 3px'}}> or </span></li>);
elements.push(<li key={`or-${index}`}><span style={{verticalAlign: 'middle', minHeight: '64px', display: 'inline-block', padding: '0px 3px'}}> and </span></li>);
}
elements.push(current);
return elements;
Expand Down

0 comments on commit 4f002e8

Please sign in to comment.