Skip to content

Commit b4cd833

Browse files
authored
fix: bugfix for origins (#11645)
1 parent 7d35800 commit b4cd833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/mask/popups/pages/Personas/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Persona = memo(() => {
4848
const groups = await Services.SiteAdaptor.getOriginsWithoutPermission()
4949
const origins = groups.flatMap((x) => x.origins)
5050

51-
if (origins.every((x) => x === 'https://www.x.com/*' || x === 'https://x.com/*')) {
51+
if (origins.length && origins.every((x) => x === 'https://www.x.com/*' || x === 'https://x.com/*')) {
5252
modalNavigate(PopupModalRoutes.UpdatePermissions)
5353
}
5454
}, [])

0 commit comments

Comments
 (0)