Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 06:54:40 +00:00
co-authored by renee-png
parent 39a4bbe968
commit 5f9d229eab
+2 -2
View File
@@ -176,7 +176,7 @@ export function NewCaseDialog({ open, onOpenChange, defaultClientId }: Props) {
setClientId(data.id);
setShowNewClient(false);
}
setStep((s) => Math.min(4, (s + 1) as Step));
setStep((s) => (Math.min(4, s + 1) as Step));
};
const submit = async (alsoInvoice = false) => {
@@ -626,7 +626,7 @@ export function NewCaseDialog({ open, onOpenChange, defaultClientId }: Props) {
<div className="flex items-center justify-between pt-4 border-t mt-2">
<div>
{step > 1 && (
<Button variant="link" onClick={() => setStep((s) => Math.max(1, (s - 1) as Step))}>
<Button variant="link" onClick={() => setStep((s) => (Math.max(1, s - 1) as Step))}>
Go Back
</Button>
)}