Skip to content

Commit 05d523a

Browse files
Update src/app/(dashboard)/projects/[projectId]/services/email/configurations/page.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 3cb391f commit 05d523a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • src/app/(dashboard)/projects/[projectId]/services/email/configurations

‎src/app/(dashboard)/projects/[projectId]/services/email/configurations/page.tsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ const EmailConfigurationsPage = () => {
4545
},
4646
});
4747

48-
if (isError) {
49-
toast.error("Error", {
50-
description: `Failed to fetch project: ${JSON.stringify(error)}`,
51-
});
52-
}
48+
useEffect(() => {
49+
if (isError) {
50+
toast.error("Error", {
51+
description: `Failed to fetch project: ${JSON.stringify(error)}`,
52+
});
53+
}
54+
}, [isError, error]);
5355

5456
useEffect(() => {
5557
const loadEmailConfig = async () => {

0 commit comments

Comments
 (0)