fix(app): show ui switcher banner in demo mode
render_banner() was incorrectly guarded by 'if not IS_DEMO' — the spec says the banner is open to all demo visitors. render_banner() already handles its own eligibility check internally (_DEMO_MODE or can_use).
This commit is contained in:
parent
c42ba318cf
commit
e95272c92f
1 changed files with 6 additions and 7 deletions
|
|
@ -203,12 +203,11 @@ if IS_DEMO:
|
||||||
from app.components.demo_toolbar import render_demo_toolbar
|
from app.components.demo_toolbar import render_demo_toolbar
|
||||||
render_demo_toolbar()
|
render_demo_toolbar()
|
||||||
|
|
||||||
# ── UI switcher banner (non-demo, paid tier) ────────────────────────────────
|
# ── UI switcher banner (paid tier; or all visitors in demo mode) ─────────────
|
||||||
if not IS_DEMO:
|
try:
|
||||||
try:
|
|
||||||
from app.components.ui_switcher import render_banner
|
from app.components.ui_switcher import render_banner
|
||||||
render_banner()
|
render_banner()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass # never crash the app over the banner
|
pass # never crash the app over the banner
|
||||||
|
|
||||||
pg.run()
|
pg.run()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue