From 8e829353126f186b37320cc93864f2638f9d1e49 Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sat, 13 Jun 2026 16:53:35 +0200 Subject: [PATCH] fix(purse): HC status never reports EXPIRED for ex-Club (non-VIP) users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clubStatus computed `(purse.pastVipDays > 0) || (purse.pastVipDays > 0)` — the same field twice. The first operand was meant to be `pastClubDays`, so a user who previously had Habbo Club but never VIP got ClubStatus.NONE instead of EXPIRED, showing the wrong HC Center status text and Buy-vs-Extend button. Use pastClubDays. --- src/hooks/purse/usePurse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/purse/usePurse.ts b/src/hooks/purse/usePurse.ts index f02e541..1599e56 100644 --- a/src/hooks/purse/usePurse.ts +++ b/src/hooks/purse/usePurse.ts @@ -13,7 +13,7 @@ const usePurseState = () => { if(hcDisabled || (purse.clubDays > 0)) return ClubStatus.ACTIVE; - if((purse.pastVipDays > 0) || (purse.pastVipDays > 0)) return ClubStatus.EXPIRED; + if((purse.pastClubDays > 0) || (purse.pastVipDays > 0)) return ClubStatus.EXPIRED; return ClubStatus.NONE; }, [ purse, hcDisabled ]);