mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
fixing miscompilation of ??= 🚏
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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: [],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user