Merge branch 'develop' into MED-97
This commit is contained in:
@@ -140,3 +140,10 @@ export default class PersonalCode {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export const findProductTypeIdByHandle = (
|
||||
productTypes: { metadata?: Record<string, unknown> | null; id: string }[],
|
||||
handle: string,
|
||||
) => {
|
||||
return productTypes.find(({ metadata }) => metadata?.handle === handle)?.id;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user