add test_mode

This commit is contained in:
2026-01-20 12:34:01 -03:00
parent 49e0c3333b
commit 1aa15aaddc
5 changed files with 72 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ export type WorkspaceContextProps = {
workspaces: Workspace[]
subscription: Subscription | null
address: Address | null
test_mode: boolean
}
export const workspaceContext = createContext<
@@ -66,6 +67,7 @@ export const workspaceMiddleware = async (
workspaces,
subscription: org?.['subscription'] || null,
address: org?.['address'] || null,
test_mode: 'test_mode' in org,
blocked: 'subscription_frozen' in org
})