@@ -97,6 +97,8 @@ export default function License({ pluginSlug }: { pluginSlug: string }) {
9797 activateLicense ( )
9898 } , [ ] )
9999
100+ console . log ( '' , proBuildCodeName , freeBuildCodeName )
101+
100102 return (
101103 < div className = "mb-12" >
102104 < Title level = { 5 } > { __ ( 'License & Activation' ) } </ Title >
@@ -109,13 +111,16 @@ export default function License({ pluginSlug }: { pluginSlug: string }) {
109111
110112 < div className = "mb-2" >
111113 { __ ( 'Version' ) } : { freeVersion }
112- < Typography . Text className = "ml-2 text-xs" type = "secondary" >
113- { __ ( 'Code Name: ' ) }
114- { freeBuildCodeName ?. value }
115- < If conditions = { freeBuildCodeName ?. value === currentBuildCodeName } >
116- < LucideIcn className = "ml-1" name = "check" />
117- </ If >
118- </ Typography . Text >
114+ < If conditions = { [ ! freeBuildCodeName ?. loading , ! freeBuildCodeName ?. value ?. includes ( '<html' ) ] } >
115+ < Typography . Text className = "ml-2 text-xs" type = "secondary" >
116+ { __ ( 'Code Name: ' ) }
117+
118+ { freeBuildCodeName ?. value }
119+ < If conditions = { freeBuildCodeName ?. value === currentBuildCodeName } >
120+ < LucideIcn className = "ml-1" name = "check" />
121+ </ If >
122+ </ Typography . Text >
123+ </ If >
119124 </ div >
120125 < If conditions = { ! hasProPlugin } >
121126 < div className = "mb-2" >
@@ -144,13 +149,15 @@ export default function License({ pluginSlug }: { pluginSlug: string }) {
144149 < div className = "mb-2" >
145150 < div className = "mb-2" >
146151 { __ ( 'Pro Version' ) } : { proVersion } { ' ' }
147- < Typography . Text className = "ml-2 text-xs" type = "secondary" >
148- { __ ( 'Code Name: ' ) }
149- { proBuildCodeName ?. value }
150- < If conditions = { proBuildCodeName ?. value === currentBuildCodeName } >
151- < LucideIcn className = "ml-1" name = "check" />
152- </ If >
153- </ Typography . Text >
152+ < If conditions = { [ ! proBuildCodeName ?. loading , ! proBuildCodeName ?. value ?. includes ( '<html' ) ] } >
153+ < Typography . Text className = "ml-2 text-xs" type = "secondary" >
154+ { __ ( 'Code Name: ' ) }
155+ { proBuildCodeName ?. value }
156+ < If conditions = { proBuildCodeName ?. value === currentBuildCodeName } >
157+ < LucideIcn className = "ml-1" name = "check" />
158+ </ If >
159+ </ Typography . Text >
160+ </ If >
154161 </ div >
155162
156163 < CheckNewUpdate />
@@ -186,4 +193,4 @@ export default function License({ pluginSlug }: { pluginSlug: string }) {
186193 </ If >
187194 </ div >
188195 )
189- }
196+ }
0 commit comments