Skip to content

Commit

Permalink
Merge pull request #141 from hymm/v1.1.1-beta
Browse files Browse the repository at this point in the history
v1.1.1
  • Loading branch information
hymm authored Apr 17, 2018
2 parents bc537d4 + c0e5c39 commit ce63197
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Version 1.1.1
### Bugfix
* Fixed crashing with Salmon Run Schedule when there's a mystery weapon

## Version 1.1.0
### New Features
* Salmon Run Schedule
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "squid-tracks",
"description": "alternative splatnet2 client with ability to upload to stat.ink",
"productName": "SquidTracks",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"author": "@Wrong_Shoe",
"devDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions src/salmon.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,15 @@
border-top: 1px red solid;
width: 100%;
}

.mystery {
display: inline-block;
text-align: center;
width: 30px;
background: grey;
height: 30px;
vertical-align: middle;
color: white;
font-size: 1.5em;
border-radius: 20px;
}
21 changes: 13 additions & 8 deletions src/salmon.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,19 @@ const SalmonDetail = ({ detail }) => {
alt={detail.stage.name}
/>
<br />
{detail.weapons.map((weapon, i) => (
<Image
key={i}
src={`https://app.splatoon2.nintendo.net${weapon.thumbnail}`}
style={{ maxHeight: 40 }}
alt={weapon.name}
/>
))}
{detail.weapons.map(
(weapon, i) =>
weapon == null ? (
<div className="mystery">?</div>
) : (
<Image
key={i}
src={`https://app.splatoon2.nintendo.net${weapon.thumbnail}`}
style={{ maxHeight: 40 }}
alt={weapon.name}
/>
)
)}
</Panel.Body>
</Panel>
);
Expand Down

0 comments on commit ce63197

Please sign in to comment.