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