Skip to content

Commit

Permalink
Fix Agent ID appearance choose (#1490)
Browse files Browse the repository at this point in the history
## Что этот PR делает
В названии всё сказано

## Тестирование

![image](https://github.com/user-attachments/assets/664faf22-493d-4d79-99cd-b76f61e29b12)

## Changelog

:cl:
fix: Пофикшен выбор скина в карте агента, картинки вернулись
/:cl:
  • Loading branch information
AyIong authored Sep 10, 2024
1 parent a81d22c commit 5828584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions tgui/packages/tgui/interfaces/AgentCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const AgentCardInfo = (props, context) => {

export const AgentCardAppearances = (props, context) => {
const { act, data } = useBackend(context);
const [selectedAppearance, setSelectedAppearance] = useSharedState(context, 'selectedAppearance', 'null');
const [selectedAppearance, setSelectedAppearance] = useSharedState(context, 'selectedAppearance', '');
const { appearances } = data;

return (
Expand All @@ -223,10 +223,9 @@ export const AgentCardAppearances = (props, context) => {
{Object.entries(appearances).map(([name, image]) => (
<ImageButton
m={0.5}
vertical
key={name}
image={image}
imageSize="64px"
base64={image}
imageSize={58}
selected={selectedAppearance === name}
onClick={() => {
setSelectedAppearance(name);
Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit 5828584

Please sign in to comment.