Optimize settings form displays "use snippet instructions" for a moment and hides it #3720
Labels
Good First Issue
Good first issue for new engineers
Module: Optimize
Google Optimize module related issues
P2
Low priority
Rollover
Issues which role over to the next sprint
Type: Bug
Something isn't working
Milestone
Bug Description
When I open Optimize settings form, I see the form shows me use snippet instructions for a moment and then hides it.
Screencast.2021-07-15.20.22.15.mp4
Looks like it happens because Analytics settings haven't been resolved yet and the settings form from the Optimize module thinks that the
useSnippet
setting is disabled.Steps to reproduce
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
useSnippet
setting for Analytics is disabled, or the AMP mode isfalse
(this is the current logic)Implementation Brief
analyticsUseSnippet === false
instead of! analyticsUseSnippet
:site-kit-wp/assets/js/modules/optimize/components/common/UseSnippetInstructions.js
Line 98 in f54254f
site-kit-wp/assets/js/modules/optimize/components/common/UseSnippetInstructions.js
Line 127 in f54254f
Test Coverage
Visual Regression Changes
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: