diff --git a/apps/hq-web/src/pages/ClientDetail.tsx b/apps/hq-web/src/pages/ClientDetail.tsx
index 069d726..f67fc3b 100644
--- a/apps/hq-web/src/pages/ClientDetail.tsx
+++ b/apps/hq-web/src/pages/ClientDetail.tsx
@@ -137,7 +137,8 @@ export function ClientDetail() {
onChange={(e) => {
setActionErr(undefined)
patchClient(id, { status: e.target.value as ClientStatus })
- .then(client.reload).catch((err: Error) => setActionErr(err.message))
+ .then(() => { toast.ok('Status updated'); client.reload() })
+ .catch((err: Error) => setActionErr(err.message))
}}
>
{CLIENT_STATUSES.map((s) =>
)}
@@ -156,7 +157,8 @@ export function ClientDetail() {
onChange={(ownerId) => {
setActionErr(undefined)
setClientOwner(id, ownerId)
- .then(client.reload).catch((err: Error) => setActionErr(err.message))
+ .then(() => { toast.ok('Owner updated'); client.reload() })
+ .catch((err: Error) => setActionErr(err.message))
}}
/>
diff --git a/apps/hq-web/src/pages/Modules.tsx b/apps/hq-web/src/pages/Modules.tsx
index dd2b1a8..cefa408 100644
--- a/apps/hq-web/src/pages/Modules.tsx
+++ b/apps/hq-web/src/pages/Modules.tsx
@@ -166,7 +166,6 @@ function ModuleClients(props: { module: Module }) {
function QuoteContent(props: { module: Module; isOwner: boolean; onSaved: () => void }) {
const toast = useToast()
const [text, setText] = useState(props.module.quoteContent.join('\n'))
- const [saved, setSaved] = useState(false)
const [error, setError] = useState
()
const [commitNonce, setCommitNonce] = useState(0)
const previewBody = useMemo(() => JSON.stringify({ contentLines: splitLines(text) }), [text])
@@ -174,7 +173,7 @@ function QuoteContent(props: { module: Module; isOwner: boolean; onSaved: () =>
const save = () => {
setError(undefined)
patchModule(props.module.id, { quoteContent: splitLines(text) })
- .then(() => { setSaved(true); toast.ok('Quote content saved'); props.onSaved() })
+ .then(() => { toast.ok('Quote content saved'); props.onSaved() })
.catch((e: Error) => setError(e.message))
}
@@ -185,10 +184,9 @@ function QuoteContent(props: { module: Module; isOwner: boolean; onSaved: () =>