Skip to content

Commit

Permalink
Temp fix to stop torpedo core from crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
SoshJam committed Jul 23, 2021
1 parent 40ef572 commit 360b250
Showing 1 changed file with 1 addition and 1 deletion.
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 360b250

Please sign in to comment.