mirror of
https://github.com/placeholder-soft/web.git
synced 2026-04-29 03:15:28 +08:00
fix: errors shouldn't mess with open frame support flag (#1008)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user