fix ts error, fix styling on PermissionRequest

This commit is contained in:
Jorrin
2024-03-28 20:26:09 +01:00
parent bb61fef30a
commit b2ba74bd97
3 changed files with 7 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ function IndexPopup() {
) : (
<Frame>
<div className="popup">
{page === 'toggle' ? <ToggleButton active={isWhitelisted} onClick={toggle} domain={domain} /> : null}
{page === 'toggle' && domain ? <ToggleButton active={isWhitelisted} onClick={toggle} domain={domain} /> : null}
{page === 'disabled' ? <DisabledScreen /> : null}
<BottomLabel />
</div>