Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix error when rendering items in premium dialog

ammarahm-edc158dd6585f2
diff --git a/apps/mobile/src/components/Announcements/functions.js b/apps/mobile/src/components/Announcements/functions.js
index 7ad010b12..45bd4fdbd 100644
--- a/apps/mobile/src/components/Announcements/functions.js
+++ b/apps/mobile/src/components/Announcements/functions.js
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { Fragment } from 'react';
import {View} from 'react-native';
import {allowedPlatforms} from '../../provider/stores';
import {ProFeatures} from '../ResultDialog/pro-features';
@@ -47,6 +47,7 @@ const renderItems = {
title: Title,
description: Description,
body: Body,
+ text:Body,
image: Photo,
list: List,
subheading: SubHeading,
@@ -55,7 +56,7 @@ const renderItems = {
};
export const renderItem = ({item, index, color,inline}) => {
- const Item = renderItems[item.type];
+ const Item = renderItems[item.type] || Fragment
return <Item key={item.text || item.src || item.type} {...item} index={index} color={color} inline={inline} />;
};