Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit 366aaf5

Browse files
authored
remove redundant null check (#2429)
1 parent 36feef7 commit 366aaf5

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • apps/web/src/components/Basenames/UsernameProfileSectionFrames

apps/web/src/components/Basenames/UsernameProfileSectionFrames/Frame.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export default function Frame({ url, className, onError }: FrameProps) {
5555
const { frameConfig: sharedConfig, farcasterSignerState, anonSignerState } = useFrameContext();
5656
const queryClient = useQueryClient();
5757
const [error, setError] = useState<string>('');
58-
const [frameLoadError, setFrameLoadError] = useState<boolean>(false);
5958
const clearError = useCallback(() => setError(''), []);
6059
const [isDismissing, setIsDismissing] = useState<boolean>(false);
6160
const handleDismissError = useCallback(() => {
@@ -169,7 +168,6 @@ export default function Frame({ url, className, onError }: FrameProps) {
169168

170169
// If both frame types fail, mark as failed
171170
const hasError = farcasterFailed && openFrameFailed;
172-
setFrameLoadError(hasError);
173171

174172
// Notify parent component of error state
175173
onError?.(hasError);
@@ -211,10 +209,6 @@ export default function Frame({ url, className, onError }: FrameProps) {
211209
[className],
212210
);
213211

214-
if (frameLoadError || !frameState) {
215-
return null;
216-
}
217-
218212
return (
219213
<div className="relative">
220214
<Transition

0 commit comments

Comments
 (0)