Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

Update greeting time thresholds

Chase Foster012743f1cdfb
diff --git a/apps/erp/app/components/Greeting.tsx b/apps/erp/app/components/Greeting.tsx
index b8b92b5b46..ae1c881879 100644
--- a/apps/erp/app/components/Greeting.tsx
+++ b/apps/erp/app/components/Greeting.tsx
@@ -16,9 +16,9 @@ export function Greeting(props: ComponentProps<typeof Heading>) {
);
const greeting = useMemo(() => {
- if (currentTime.hour >= 3 && currentTime.hour < 11) {
+ if (currentTime.hour >= 3 && currentTime.hour < 12) {
return "Good morning";
- } else if (currentTime.hour >= 11 && currentTime.hour < 16) {
+ } else if (currentTime.hour >= 12 && currentTime.hour < 18) {
return "Good afternoon";
} else {
return "Good evening";