Skip to content

Commit

Permalink
Fix bug that compared string and number
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 22, 2020
1 parent 84cfbb9 commit f56ac52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function App() {
*/
function itemMatchesURL(item, match) {
let queueMatches = item.queue === match.params.queue;
let numberMatches = item.number === match.params.number;
let numberMatches = item.number.toString() === match.params.number;
return queueMatches && numberMatches;
}

Expand Down

0 comments on commit f56ac52

Please sign in to comment.