Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

fix(AddCompany): conditionally render caution message for editing company name

Khuram Niaz7545eef6b8b6
diff --git a/src/components/admin/AddCompany.tsx b/src/components/admin/AddCompany.tsx
index 4949b6c..6eb0c99 100644
--- a/src/components/admin/AddCompany.tsx
+++ b/src/components/admin/AddCompany.tsx
@@ -116,10 +116,12 @@ function AddCompany({
<DialogContent className="lg:max-h-screen overflow-y-scroll">
<DialogHeader>
<DialogTitle>{pageTitle}</DialogTitle>
- <DialogDescription className="text-orange-600 dark:text-orange-500">
- Caution: Editing name of the company will affect all the related
- job records including your resume.
- </DialogDescription>
+ {editCompany && (
+ <DialogDescription className="text-orange-600 dark:text-orange-500">
+ Caution: Editing name of the company will affect all the
+ related job records including your resume.
+ </DialogDescription>
+ )}
</DialogHeader>
<Form {...form}>
<form