From f5552e1ba66ad0f0960df1c1f4c404ba71e31023 Mon Sep 17 00:00:00 2001 From: Jack Matthews Date: Wed, 22 Mar 2023 02:08:33 -0400 Subject: [PATCH] [Metro] Switch findByDisplayName/All to use dNameFilter --- src/lib/metro/filters.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/metro/filters.ts b/src/lib/metro/filters.ts index 700f7cd..a1bc1d1 100644 --- a/src/lib/metro/filters.ts +++ b/src/lib/metro/filters.ts @@ -72,7 +72,6 @@ export const findByProps: PropsFinder = (...props) => find(propsFilter(props)); export const findByPropsAll: PropsFinderAll = (...props) => findAll(propsFilter(props)); export const findByName = (name: string, defaultExp = true) => find(nameFilter(name, defaultExp)); export const findByNameAll = (name: string, defaultExp = true) => findAll(nameFilter(name, defaultExp)); -// TODO: Make this use dNameFilter -export const findByDisplayName = (displayName: string, defaultExp = true) => find(nameFilter(displayName, defaultExp)); -export const findByDisplayNameAll = (displayName: string, defaultExp = true) => findAll(nameFilter(displayName, defaultExp)); +export const findByDisplayName = (displayName: string, defaultExp = true) => find(dNameFilter(displayName, defaultExp)); +export const findByDisplayNameAll = (displayName: string, defaultExp = true) => findAll(dNameFilter(displayName, defaultExp)); export const findByStoreName = (name: string) => find(storeFilter(name)); \ No newline at end of file