Merge branch 'develop' into MED-97

This commit is contained in:
2025-09-26 17:01:24 +03:00
86 changed files with 11249 additions and 3151 deletions

View File

@@ -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;
};