fix: Don't show the visual regression warning outside of CI
This commit is contained in:
parent
103c35737c
commit
4596c2233c
1 changed files with 3 additions and 1 deletions
|
@ -135,13 +135,15 @@ const GlobalToolbar: React.FC = () => {
|
|||
const moreMenuTriggerRef = useRef<HTMLButtonElement>(null)
|
||||
|
||||
const showUpdatesBadge = useMemo(() => {
|
||||
if (hasUpdates || window.__IS_VISUAL_REGRESSION_TESTING) {
|
||||
if (window.__IS_VISUAL_REGRESSION_TESTING) {
|
||||
if (!showedVisualTestingWarning) {
|
||||
showedVisualTestingWarning = true
|
||||
console.warn(
|
||||
"Visual regression testing enabled, so we're showing the updates badge unconditionally",
|
||||
)
|
||||
}
|
||||
}
|
||||
if (hasUpdates || window.__IS_VISUAL_REGRESSION_TESTING) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue