Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show key use count #876

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions src/pages/player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,13 @@ function Player() {
}
if (loadoutItem.upd?.Key) {
const key = items.find(i => i.id === loadoutItem._tpl);
if (key && key.properties.uses) {
countLabel = `${key.properties.uses-loadoutItem.upd.Key.NumberOfUsages}/${key.properties.uses}`;
if (key) {
if (key.properties.uses) {
countLabel = `${key.properties.uses-loadoutItem.upd.Key.NumberOfUsages}/${key.properties.uses}`;
} else {
countLabel = loadoutItem.upd.Key.NumberOfUsages;
}

}
}
if (loadoutItem.upd?.Repairable) {
Expand Down
2 changes: 1 addition & 1 deletion src/translations/pl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"Tarkov.dev": "Tarkov.dev",
"about-open-source-p": "<0>Cała platforma jest open source i skupia się wokół deweloperów. Cały kod jest dostępny na <1><0></0> GitHub</1>.</0>",
"about-discord-p": "<0>Jeśli chcesz porozmawiać, zadać pytania lub poprosić o nowe funkcje, mamy serwer <1><0></0> Discord</1>.</0>",
"about-x-p": "<0>Obserwuj nas na <1><0></0> Xze</1> dla wszystkich najnowszych aktualizacji.</0>",
"about-x-p": "<0>Obserwuj nas na <1><0></0> X'ie</1> dla wszystkich najnowszych aktualizacji.</0>",
"About": "O",
"Contributors": "Współtwórcy",
"Massive thanks to all the people who help build and maintain this project!": "Ogromne podziękowania dla wszystkich ludzi, którzy pomagają budować i utrzymywać ten projekt!",
Expand Down
Loading