fix: domain setting repeated toast

This commit is contained in:
DIYgod
2022-11-04 00:00:07 +00:00
parent b4fb66f5a7
commit 660e297607
@@ -51,7 +51,7 @@ export default function SettingsDomainsPage() {
} else if (updateSite.isError) {
toast.error("Failed to update site")
}
}, [updateSite, router])
}, [updateSite.isSuccess])
const [hasSet, setHasSet] = useState(false)
useEffect(() => {