Unverified Commit fdd211e3 authored by Eric Wang's avatar Eric Wang Committed by GitHub

debug/chat: increase notify error duration to 3000 (#2778)

parent 7001e21e
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
3. Generate a `SECRET_KEY` in the `.env` file. 3. Generate a `SECRET_KEY` in the `.env` file.
```bash ```bash
openssl rand -base64 42 sed -i "/^SECRET_KEY=/c\SECRET_KEY=$(openssl rand -base64 42)" .env
``` ```
3.5 If you use annaconda, create a new environment and activate it 3.5 If you use annaconda, create a new environment and activate it
```bash ```bash
......
...@@ -130,7 +130,7 @@ const Debug: FC<IDebug> = ({ ...@@ -130,7 +130,7 @@ const Debug: FC<IDebug> = ({
const { notify } = useContext(ToastContext) const { notify } = useContext(ToastContext)
const logError = useCallback((message: string) => { const logError = useCallback((message: string) => {
notify({ type: 'error', message }) notify({ type: 'error', message, duration: 3000 })
}, [notify]) }, [notify])
const [completionFiles, setCompletionFiles] = useState<VisionFile[]>([]) const [completionFiles, setCompletionFiles] = useState<VisionFile[]>([])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment