From 6f9be107783a02713a508437b100e008a7e043b1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 18 Aug 2026 00:36:33 -0700 Subject: The crown leaves the shop floor for good — it was never merchandise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz --- src/features/hats.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/features/hats.js') diff --git a/src/features/hats.js b/src/features/hats.js index 0bd4545..a19bf2a 100644 --- a/src/features/hats.js +++ b/src/features/hats.js @@ -312,10 +312,8 @@ export function hatsFeature(ctx) { d === null ? h('div', { style: 'text-align:center;padding:16px' }, h('span', { class: 'spinner' })) : h('div', { class: 'col', style: 'gap:2px' }, - // the crown stays off the menu — it appears only for the head - // that already wears it - ...HATS.filter((hat) => hat.id !== 'crown' || me === ADMIN_PK || (d.owned || []).includes('crown')) - .map((hat) => shopRow(hat, d, me))), + // the crown is not merchandise — it never appears in the store + ...HATS.filter((hat) => hat.id !== 'crown').map((hat) => shopRow(hat, d, me))), d && d.offline ? h('div', { class: 'small faint', style: 'text-align:center' }, t('hatShopOffline')) : null), h('button', { class: 'btn-ghost btn-block', onClick: closeShop }, t('back'))); } -- cgit v1.2.3