Skip to content

Commit da0a3ff

Browse files
committed
fixed var collision
1 parent 268587f commit da0a3ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/firebase.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,10 @@ export const updateCalendarDay = async (
12731273
return true;
12741274
} catch (error) {
12751275
console.error('Error updating calendar day:', error);
1276+
return false;
1277+
}
1278+
};
1279+
12761280
export const adminUpdateUser = async (userId: string, updates: { role?: 'admin' | 'member'; streakDays?: number }): Promise<boolean> => {
12771281
try {
12781282
const userRef = doc(db, 'users', userId);

0 commit comments

Comments
 (0)