Hide Sign out when running as machine (even if session is null)
This commit is contained in:
parent
6df49ba956
commit
3f49e349f7
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ export function PortalShell({ children }: PortalShellProps) {
|
|||
const { session, machineContext, machineContextError, machineContextLoading } = useAuth()
|
||||
const [isSigningOut, setIsSigningOut] = useState(false)
|
||||
|
||||
const isMachineSession = session?.user.role === "machine"
|
||||
const isMachineSession = session?.user.role === "machine" || Boolean(machineContext)
|
||||
const personaValue = machineContext?.persona ?? session?.user.machinePersona ?? null
|
||||
const collaboratorName = machineContext?.assignedUserName?.trim() ?? ""
|
||||
const collaboratorEmail = machineContext?.assignedUserEmail?.trim() ?? ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue