Skip to content

Commit

Permalink
Fix prettier issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Sep 30, 2021
1 parent 3ea19fc commit ccd0695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions server/events/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ App.on(
App.on("stopAllSounds", ({simulatorId, station}) => {
// If Random Station is selected, pick a random station from the list of available stations
if (station === "random") {
station = App.clients[Math.floor(Math.random() * App.clients.length)].station;
station =
App.clients[Math.floor(Math.random() * App.clients.length)].station;
}
const clients = App.clients.filter(s => {
if (s.simulatorId !== simulatorId) return false;
Expand Down Expand Up @@ -351,7 +352,8 @@ App.on("stopAllSounds", ({simulatorId, station}) => {
App.on("cancelLoopingSounds", ({simulatorId, station}) => {
// If Random Station is selected, pick a random station from the list of available stations
if (station === "random") {
station = App.clients[Math.floor(Math.random() * App.clients.length)].station;
station =
App.clients[Math.floor(Math.random() * App.clients.length)].station;
}
const clients = App.clients.filter(s => {
if (s.simulatorId !== simulatorId) return false;
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/TorpedoLoading/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const TorpedoView = ({torpedo}) => {
if (torpedo.state === "idle") return "No Torpedos Loaded";

return `${capitalCase(
loaded ? loaded.type : (lastLoaded ? lastLoaded.type : ""),
loaded ? loaded.type : lastLoaded ? lastLoaded.type : "",
)} Torpedo ${torpedo.state === "loaded" ? "Loaded" : "Fired"}`;
})()}
</OutputField>
Expand Down

0 comments on commit ccd0695

Please sign in to comment.