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

[MIRROR] Minor newscaster UI fix #2152

Merged
merged 1 commit into from
Feb 29, 2024
Merged

[MIRROR] Minor newscaster UI fix #2152

merged 1 commit into from
Feb 29, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1149
Original PR: tgstation/tgstation#81638

About The Pull Request

Currently newscasters note "No wanted issue posted. Have a secure day." regardless of whether there's an active wanted issue posted or not.
Looking into the code, Newscaster.jsx does actually detail an alternate message for when there is an active wanted issue. It's just only active when wanted.active holds true, while I believe the active it's trying to access cannot be accessed without using wanted.map(...).
Making it use wanted.map(...) solves this.

Image

image

Why It's Good For The Game

Fixes #81600.

Changelog

🆑 00-Steven
fix: Newscasters no longer say "No wanted issue posted. Have a secure day." when there is, in fact, an active wanted issue currently posted.
/:cl:

* Minor newscaster UI fix (#81638)

## About The Pull Request

Currently newscasters note "No wanted issue posted. Have a secure day."
regardless of whether there's an active wanted issue posted or not.
Looking into the code, `Newscaster.jsx` does actually detail an
alternate message for when there _is_ an active wanted issue. It's just
only active when `wanted.active` holds true, while I believe the
`active` it's trying to access cannot be accessed without using
`wanted.map(...)`.
Making it use `wanted.map(...)` solves this.

<details>
  <summary>Image</summary>
  

![image](https://github.com/tgstation/tgstation/assets/42909981/434d1449-7663-4416-b88a-c1d89e836cd5)
  
</details>

## Why It's Good For The Game

Fixes #81600.
## Changelog
:cl:
fix: Newscasters no longer say "No wanted issue posted. Have a secure
day." when there is, in fact, an active wanted issue currently posted.
/:cl:

* Minor newscaster UI fix

---------

Co-authored-by: _0Steven <[email protected]>
@Iajret Iajret merged commit 2fb4232 into master Feb 29, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1149 branch February 29, 2024 18:23
AnywayFarus added a commit that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants