fix issue with object destructuring

This commit is contained in:
Amruth Pillai
2020-03-28 20:38:57 +05:30
parent 15b3f708a1
commit ffa77cbbd6

View File

@ -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 !== '' && (