mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
fix(work-orders): drop auth-bypass from wizard mock gate
(cherry picked from commit 2c899ebfd8269567bc0637788aebe29288b6515c)
This commit is contained in:
parent
729deff897
commit
62a51a163c
1 changed files with 1 additions and 2 deletions
|
|
@ -1,10 +1,9 @@
|
|||
import { env } from "@/lib/env";
|
||||
import { isAuthBypassEnabled } from "@/lib/auth/auth-bypass";
|
||||
|
||||
export function isWoWizardMockEnabled(): boolean {
|
||||
return env.isDev;
|
||||
}
|
||||
|
||||
export function shouldUseMockWoWizardCreate(locationId: string): boolean {
|
||||
return isAuthBypassEnabled() || locationId.startsWith("mock-");
|
||||
return env.isDev && locationId.startsWith("mock-");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue