From f56ac52d14932268bfdedf7efea53d2fbc5d221d Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Thu, 22 Oct 2020 16:50:42 -0400 Subject: [PATCH] Fix bug that compared string and number --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 068c371..64afb00 100644 --- a/src/App.js +++ b/src/App.js @@ -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; }