add test_mode
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user