Skip to content

Commit

Permalink
Merge pull request #3192 from SoshJam/temp-fix-torpedo-crash
Browse files Browse the repository at this point in the history
Temporary fix to stop the Torpedo Core from crashing
  • Loading branch information
alexanderson1993 authored Jul 27, 2021
2 parents 40ef572 + 360b250 commit ec9d0ea
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 ec9d0ea

Please sign in to comment.