fix: add prefer-array-some rule (#5109)

This commit is contained in:
LongYinan committed 2023-11-29 04:43:43 +00:00
1 parent 23cfc58fe2
commit d267029761
5 files changed
+7 -6

No files matched your search

@@ -130,7 +130,7 @@ export const SettingModal = ({
<WorkspaceSetting key={workspaceId} workspaceId={workspaceId} />
</Suspense>
) : null}
{generalSettingList.find(v => v.key === activeTab) ? (
{generalSettingList.some(v => v.key === activeTab) ? (
<GeneralSetting generalKey={activeTab as GeneralSettingKeys} />
) : null}
{activeTab === 'account' && loginStatus === 'authenticated' ? (