mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
merge(modules): gate achievements behind the achievements module flag
# Conflicts: # src/hooks/use-auth.ts
This commit is contained in:
commit
6bde45ce0a
10 files changed
+349
-7
No files matched your search
@@ -90,9 +90,11 @@ export interface AuthUser {
|
||||
* opt-out) and already reflected here, so nav + Insights pill gates read
|
||||
* this map rather than re-deriving. Coerced to `{}` against a stale /me
|
||||
* payload (older server image without the field) so every gate fails open
|
||||
* — a missing map never blanks the nav.
|
||||
* — a missing map never blanks the nav. Optional so existing `AuthUser`
|
||||
* test fixtures stay valid; `fetchMe` always populates it (empty map when
|
||||
* absent), so live code reads a real map.
|
||||
*/
|
||||
modules: Partial<Record<ModuleKey, boolean>>;
|
||||
modules?: Partial<Record<ModuleKey, boolean>>;
|
||||
}
|
||||
|
||||
async function fetchMe(): Promise<AuthUser> {
|
||||
|
||||
Reference in new issue
Block a user