diff options
author | 2024-10-21 14:04:50 +0200 | |
---|---|---|
committer | 2024-10-21 14:04:50 +0200 | |
commit | 8a93300ac43ffd70ca687d71ee8eefdb755e6a58 (patch) | |
tree | 4f091a3e8ad082738f65f5ab47a1be910bc94933 /web/source/settings/views/user/posts/index.tsx | |
parent | [chore]: Bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 (#3469) (diff) | |
download | gotosocial-8a93300ac43ffd70ca687d71ee8eefdb755e6a58.tar.xz |
[feature] Add image descriptions for default avatar + header; don't allow editing default desc (#3473)v0.17.1
Diffstat (limited to 'web/source/settings/views/user/posts/index.tsx')
-rw-r--r-- | web/source/settings/views/user/posts/index.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/source/settings/views/user/posts/index.tsx b/web/source/settings/views/user/posts/index.tsx index 4d7669391..085fd7708 100644 --- a/web/source/settings/views/user/posts/index.tsx +++ b/web/source/settings/views/user/posts/index.tsx @@ -20,7 +20,7 @@ import React from "react"; import { useVerifyCredentialsQuery } from "../../../lib/query/oauth"; import Loading from "../../../components/loading"; -import { Error } from "../../../components/error"; +import { Error as ErrorC } from "../../../components/error"; import BasicSettings from "./basic-settings"; import InteractionPolicySettings from "./interaction-policy-settings"; @@ -38,7 +38,11 @@ export default function PostSettings() { } if (isError) { - return <Error error={error} />; + return <ErrorC error={error} />; + } + + if (!account) { + return <ErrorC error={new Error("account was undefined")} />; } return ( |