You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "You can view your custom themes in your profile",
50
-
});
37
+
constsaveAndApplyTheme=async()=>{
38
+
if(!db)returnconsole.log(Error("Firebase is not configured"));// This is to handle error when there is no `.env` file. So, that app doesn't crash while developing without `.env` file.
39
+
if(!user)return;
40
+
setSaving(true);
41
+
try{
42
+
constdataToBeAdded={
43
+
...deepClone(theme),// deep clone the theme to avoid mutation
if(!db)returnconsole.log(Error("Firebase is not configured"));// This is to handle error when there is no `.env` file. So, that app doesn't crash while developing without `.env` file.
if(!auth)returnconsole.log(Error("Firebase is not configured"));// This is to handle error when there is no `.env` file. So, that app doesn't crash while developing without `.env` file.
0 commit comments