Skip to content

Commit 7493192

Browse files
committed
Fix issue where the advertiser changes and the tracking_tag doesn't.
1 parent c2f4733 commit 7493192

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

assets/source/setup-guide/app/steps/SetupTracking.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ const SetupTracking = ( { view } ) => {
137137
setTagsList( results );
138138

139139
if ( Object.keys( results ).length > 0 ) {
140-
if ( ! appSettings?.tracking_tag ) {
140+
if (
141+
! appSettings?.tracking_tag ||
142+
typeof results[ appSettings?.tracking_tag ] ===
143+
'undefined'
144+
) {
141145
handleOptionChange(
142146
'tracking_tag',
143147
Object.keys( results )[ 0 ]

0 commit comments

Comments
 (0)