Skip to content

Commit

Permalink
Use Number(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Jul 8, 2018
1 parent 94e8d5e commit 257e538
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Vue.component('show-selector', {
];
shows.forEach(show => {
const type = animeSplitHome && show.config.anime ? 1 : 0;
const type = Number(animeSplitHome && show.config.anime);
lists[type].shows.push(show);
});
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/templates/vue-components/show-selector.mako
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Vue.component('show-selector', {
];
shows.forEach(show => {
const type = animeSplitHome && show.config.anime ? 1 : 0;
const type = Number(animeSplitHome && show.config.anime);
lists[type].shows.push(show);
});
Expand Down
2 changes: 1 addition & 1 deletion themes/light/templates/vue-components/show-selector.mako
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Vue.component('show-selector', {
];
shows.forEach(show => {
const type = animeSplitHome && show.config.anime ? 1 : 0;
const type = Number(animeSplitHome && show.config.anime);
lists[type].shows.push(show);
});
Expand Down

0 comments on commit 257e538

Please sign in to comment.