fix(acquisition): close invite privacy gaps

This commit is contained in:
jjbrunton committed 2026-09-06 13:18:11 +01:00
1 parent 1c7084c033
commit 4a57f31615
15 files changed
+213 -70

No files matched your search

+2 -2
View File
@@ -210,7 +210,7 @@ export const useAuthStore = create<AuthState>((set, get) => ({
if (unlockUserId) {
await clearPairedUnlockSeen(unlockUserId, unlockCoupleId);
}
await clearPendingInviteCode();
await clearPendingInviteCode(unlockUserId);
// Clear local state FIRST to ensure UI updates even if Supabase call fails
set({
@@ -259,7 +259,7 @@ export const useAuthStore = create<AuthState>((set, get) => ({
});
// Clear other stores when user signs out
if (user === null) {
void clearPendingInviteCode();
void clearPendingInviteCode(priorUserId);
if (priorUserId) {
void clearPairedUnlockSeen(priorUserId, priorCoupleId);
}