fixing miscompilation of ??= 🚏

This commit is contained in:
dysbulic
2023-05-15 01:05:56 -04:00
committed by Alec LaLonde
parent 2921a47ef0
commit 68dbed7da2
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ interface Content {
content: any[] | Record<string, any>;
}
export type Props = Content & TextProps;
export type Props = Content & Omit<TextProps, keyof Content>;
export const ResponsiveText: React.FC<Props> = ({ content, ...props }) => {
const value = useBreakpointValue(content);

View File

@@ -19,7 +19,8 @@ export const parseSkills = (
): Array<CategoryOption> => {
const skillsMap: SkillMap = {};
skills.forEach((skill) => {
skillsMap[skill.category] ??= {
// `??=` miscompiles in webpack
skillsMap[skill.category] = skillsMap[skill.category] ?? {
label: skill.category,
options: [],
};