Cookie banner initial Gatsby render bugfix

Had forgotten to wrap the display logic in a useEffect hook.