Contract has not been deployed to detected network (network/artifact mismatch)

I’d like to trigger a transaction when a user hits the “Redeem” button on my site. Currently, nothing happens when that button is clicked, but the console shows the following error message:

Contract has not been deployed to detected network (network/artifact mismatch)

I’ve added a custom RPC and connected it to my site. Both the url and chain ID match in Ganache and in my truffle-config file.

I’ve tried resetting the migrations, with no result.

Any ideas on what might be going on?