explanation:
This code works (with gatsby develop or gatsby build && gatsby serve), but if I do my code without onAccept={() => window.lo