upating readme and fixing settings bug
This commit is contained in:
parent
439f68022d
commit
3b14ae5cf4
2 changed files with 1 additions and 14 deletions
|
|
@ -182,7 +182,7 @@ lib_deps =
|
||||||
- Supabase RLS for all tables
|
- Supabase RLS for all tables
|
||||||
|
|
||||||
## 🚫 Limitations
|
## 🚫 Limitations
|
||||||
|
- 3-4s Cold start time while connecting to edge server
|
||||||
- Limited to upto 10 minutes of uninterrupted conversations
|
- Limited to upto 10 minutes of uninterrupted conversations
|
||||||
- Edge server stops when wall clock time is exceeded
|
- Edge server stops when wall clock time is exceeded
|
||||||
- No speech interruption detection on ESP32
|
- No speech interruption detection on ESP32
|
||||||
|
|
|
||||||
|
|
@ -70,18 +70,6 @@ const AppSettings: React.FC<AppSettingsProps> = ({
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSave = async (values: any, userType: "doctor" | "user") => {
|
const onSave = async (values: any, userType: "doctor" | "user") => {
|
||||||
console.log("onSave", values, userType);
|
|
||||||
if (userType === "doctor") {
|
|
||||||
await updateUser(
|
|
||||||
supabase,
|
|
||||||
{
|
|
||||||
user_info: {
|
|
||||||
user_type: userType,
|
|
||||||
user_metadata: values,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
selectedUser!.user_id);
|
|
||||||
} else {
|
|
||||||
await updateUser(
|
await updateUser(
|
||||||
supabase,
|
supabase,
|
||||||
{
|
{
|
||||||
|
|
@ -94,7 +82,6 @@ const AppSettings: React.FC<AppSettingsProps> = ({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
selectedUser!.user_id);
|
selectedUser!.user_id);
|
||||||
}
|
|
||||||
toast({
|
toast({
|
||||||
description: "Your prefereces have been saved!",
|
description: "Your prefereces have been saved!",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue