- fix black screen issue when in certain templates

This commit is contained in:
Amruth Pillai
2020-08-01 10:08:25 +05:30
parent 1f80fc481d
commit bc622083c7
3 changed files with 4 additions and 5 deletions

View File

@ -5,7 +5,7 @@ module.exports = {
title: 'Reactive Resume',
siteUrl: 'https://rxresu.me',
description: 'A free and open source resume builder.',
version: '2.1.3',
version: '2.1.4',
},
plugins: [
'gatsby-plugin-react-helmet',

View File

@ -77,7 +77,6 @@ section {
top: 0;
left: 0;
right: 0;
zoom: 1;
box-shadow: none;
}
}

View File

@ -8,7 +8,7 @@ import Icons from '../Icons';
const ContactItem = ({ value, icon, link }) => {
const { data } = useContext(PageContext);
const Icon = get(Icons, icon.toLowerCase(), FaCaretRight);
const Icon = get(Icons, icon && icon.toLowerCase(), FaCaretRight);
return value ? (
<div className="flex items-center">
@ -28,7 +28,7 @@ const ContactItem = ({ value, icon, link }) => {
) : null;
};
const ContactA = () => {
const ContactB = () => {
const { t } = useTranslation();
const { data } = useContext(PageContext);
@ -63,4 +63,4 @@ const ContactA = () => {
);
};
export default memo(ContactA);
export default memo(ContactB);