fix: promote vanilla in opentest

This commit is contained in:
TrèsAbhi committed 2024-10-24 15:25:14 -05:00
1 parent a2685394fd
commit 3698826ac4
1 file changed
+9 -2
@@ -56,11 +56,18 @@ export function MetaSection() {
{assertSecret(import.meta.env.PUBLIC_PROMOTE_OPENTEST) === 'true' && ( {assertSecret(import.meta.env.PUBLIC_PROMOTE_OPENTEST) === 'true' && (
<Link <Link
href={`https://opentest.blitzkit.app/tools/tankopedia/${protagonist.id}`} href={`https://${
assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) === 'opentest'
? ''
: 'opentest.'
}blitzkit.app/tools/tankopedia/${protagonist.id}`}
> >
<Button variant="outline" color="green"> <Button variant="outline" color="green">
<ScienceIcon height="1.25em" width="1.25em" /> <ScienceIcon height="1.25em" width="1.25em" />
OpenTest {assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) ===
'opentest'
? 'Vanilla'
: 'OpenTest'}
</Button> </Button>
</Link> </Link>
)} )}