mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
fix(purse): HC status never reports EXPIRED for ex-Club (non-VIP) users
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.
This commit is contained in:
@@ -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 ]);
|
||||
|
||||
Reference in New Issue
Block a user