Skip to content

Commit

Permalink
fix error message for trying to fill multiple orders at once
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhappyma committed Jan 7, 2025
1 parent fad779b commit 2f7245e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orders/updateStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const updateOrderStatus = async (
//CHECKS
if (!admin) {
const active = getActiveOrdersForChef(chef);
const verb = active[0]?.status === orderStatus.PACKING ? "pack" : "deliver";
const verb = active[0]?.status == orderStatus.FILLING ? "fill" : "deliver";

try {
switch (status) {
Expand Down

0 comments on commit 2f7245e

Please sign in to comment.