Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Fix-Crash on Entering Primary Color Hex Code without # Prefix

Aadhar Chandiwaladac4e862b816
diff --git a/client/components/build/RightSidebar/sections/Theme.tsx b/client/components/build/RightSidebar/sections/Theme.tsx
index af1883865..7f0966d0d 100644
--- a/client/components/build/RightSidebar/sections/Theme.tsx
+++ b/client/components/build/RightSidebar/sections/Theme.tsx
@@ -19,6 +19,9 @@ const Theme = () => {
const { background, text, primary } = useAppSelector<ThemeType>((state) => get(state.resume, 'metadata.theme'));
const handleChange = (property: string, color: string) => {
+ if (color[0] !== '#') {
+ color = `#${color}`;
+ }
dispatch(setResumeState({ path: `metadata.theme.${property}`, value: color }));
};