Woop! Added some error handling when I tested it as well, e.g. too short queries don't return anything from the API so I added a check for that.
One remaining bug I noticed is that the search doesn't work if there's uppercase letters or spaces at the end, should be easy to add logic to check for that, but most urgent imo is it's currently awful on mobile.
But yes it actually works!