Skip to content

Commit 3b19aa7

Browse files
fix: correcly show notifications panel
1 parent 70f349d commit 3b19aa7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/debugger/app/components/frame-app-debugger-notifications.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ export function FrameAppDebuggerNotifications({
146146
frameAppNotificationManager.state?.frame.status === "added" &&
147147
!!frameAppNotificationManager.state.frame.notificationDetails;
148148

149-
const unsupportedSignerStatus =
150-
farcasterSigner?.status !== "approved" &&
151-
farcasterSigner?.status !== "impersonating";
152-
153149
return (
154150
<div className="grid grid-rows-[auto_1fr] h-full">
155151
<div className="w-full">
@@ -162,7 +158,7 @@ export function FrameAppDebuggerNotifications({
162158
</AlertDescription>
163159
</Alert>
164160
)}
165-
{unsupportedSignerStatus && (
161+
{farcasterSigner?.status === "impersonating" && (
166162
<Alert className="mb-4" variant="destructive">
167163
<AlertTriangleIcon className="h-4 w-4" />
168164
<AlertTitle>Warning: Unsupported Farcaster signer</AlertTitle>
@@ -173,7 +169,7 @@ export function FrameAppDebuggerNotifications({
173169
</Alert>
174170
)}
175171
</div>
176-
{!unsupportedSignerStatus && (
172+
{farcasterSigner?.status === "approved" && (
177173
<div className="flex flex-row flex-grow gap-4 h-full w-full overflow-hidden">
178174
<div className="w-1/3">
179175
<FrameAppNotificationsControlPanel frameApp={frameApp} />

0 commit comments

Comments
 (0)