From 8404b0f26dda532c6dce31b2e1e2d1662c508a12 Mon Sep 17 00:00:00 2001
From: Martin Trapp <94928215+martrapp@users.noreply.github.com>
Date: Fri, 13 Sep 2024 14:56:30 +0200
Subject: [PATCH] Always render AutoNameSelected
---
.changeset/eleven-ties-crash.md | 5 +++++
components/AutoNameSelected.astro | 26 ++++++++++----------------
2 files changed, 15 insertions(+), 16 deletions(-)
create mode 100644 .changeset/eleven-ties-crash.md
diff --git a/.changeset/eleven-ties-crash.md b/.changeset/eleven-ties-crash.md
new file mode 100644
index 0000000..48e8cc3
--- /dev/null
+++ b/.changeset/eleven-ties-crash.md
@@ -0,0 +1,5 @@
+---
+'astro-vtbot': patch
+---
+
+Fixes an issue where `` got ignored when no properties were set.
diff --git a/components/AutoNameSelected.astro b/components/AutoNameSelected.astro
index 6325762..8cfa337 100644
--- a/components/AutoNameSelected.astro
+++ b/components/AutoNameSelected.astro
@@ -13,22 +13,16 @@ if (prefix && prefix.includes(' '))
if (selector === '') throw Error(`${error} selector must not be the empty string`);
---
-{
- (selector || prefix || force !== undefined || shuffle !== undefined) && (
-
- )
-}
+