fix: errors shouldn't mess with open frame support flag (#1008)

This commit is contained in:
Jordan Frankfurt
2024-09-20 13:10:22 -05:00
committed by GitHub
parent b0ab81d3e5
commit 4bfd3309c9

View File

@@ -48,6 +48,9 @@ export default function Frame({ url, className }: FrameProps) {
const currentFrameStackItem = openFrameState.currentFrameStackItem;
if (!currentFrameStackItem) return false;
const status = currentFrameStackItem.status;
if (status === 'requestError') {
return true;
}
if (status === 'done' && currentFrameStackItem.frameResult.frame.accepts) {
return currentFrameStackItem.frameResult.frame.accepts.some(
(element) => element.id === 'anonymous',