Update app/dashboard/company/page.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2025-05-23 00:21:24 +02:00
committed by GitHub
parent 940b416563
commit bbcdff0ffc

View File

@ -27,6 +27,9 @@ export default function CompanySettingsPage() {
setCsvUrl(data.company.csvUrl || ""); setCsvUrl(data.company.csvUrl || "");
setCsvUsername(data.company.csvUsername || ""); setCsvUsername(data.company.csvUsername || "");
setSentimentThreshold(data.company.sentimentAlert?.toString() || ""); setSentimentThreshold(data.company.sentimentAlert?.toString() || "");
if (data.company.csvPassword) {
setCsvPassword(data.company.csvPassword);
}
} catch (error) { } catch (error) {
console.error("Failed to fetch company settings:", error); console.error("Failed to fetch company settings:", error);
setMessage("Failed to load company settings."); setMessage("Failed to load company settings.");