Skip to content

Commit

Permalink
Fix variable undefined error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Akins committed Apr 3, 2021
1 parent d711570 commit cd96902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/modals/DetailedTrack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
let parts = this.track.album.release_date.split(`-`);
switch (this.track.album.release_date_precision) {
case `year`:
return release[0];
return parts[0];
case `month`:
return `${this.months[parts[1]]}, ${parts[0]}`
case `day`:
Expand Down

0 comments on commit cd96902

Please sign in to comment.