From ffa77cbbd6b9d7cbcab757227dd7603a32f3dae5 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Sat, 28 Mar 2020 20:38:57 +0530 Subject: [PATCH] fix issue with object destructuring --- src/templates/gengar/Gengar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/gengar/Gengar.js b/src/templates/gengar/Gengar.js index 4040ef1e..7d418ae6 100644 --- a/src/templates/gengar/Gengar.js +++ b/src/templates/gengar/Gengar.js @@ -9,7 +9,7 @@ const Gengar = () => { const { state } = context; const { data, theme } = state; - const { r, g, b } = hexToRgb(theme.colors.accent); + const { r, g, b } = hexToRgb(theme.colors.accent) || {}; const Photo = () => data.profile.photo !== '' && (