A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
return true if platfroms is undefined
ammarahm-ed1f5f9dc0b19a
diff --git a/apps/mobile/src/components/Announcements/functions.js b/apps/mobile/src/components/Announcements/functions.jsindex a02ed7f68..27d0a86df 100644--- a/apps/mobile/src/components/Announcements/functions.js+++ b/apps/mobile/src/components/Announcements/functions.js@@ -11,6 +11,7 @@ import {SubHeading} from './subheading';import {Title} from './title';export function allowedOnPlatform(platforms) {+ if (!platforms) return true;return platforms.some(platform => allowedPlatforms.indexOf(platform) > -1);}