fix(sandbox-provider): prevent permission hint flash on page load

Use strict equality check to only show no-permission message when
isCurrentWorkspaceOwner is explicitly false, not undefined.
This commit is contained in:
yyh
2026-01-13 14:23:52 +08:00
parent 1ed4ab4299
commit 9d0f4a2152

View File

@@ -73,7 +73,7 @@ const SandboxProviderPage = () => {
</div>
)}
{!isCurrentWorkspaceOwner && (
{isCurrentWorkspaceOwner === false && (
<div className="system-xs-regular text-text-tertiary">
{t('sandboxProvider.noPermission', { ns: 'common' })}
</div>