Skip to content

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

fix: cta.platforms is an array

thecodrredc60c3ba892
diff --git a/apps/web/src/components/announcements/index.js b/apps/web/src/components/announcements/index.js
index 4787360fb..a746061fe 100644
--- a/apps/web/src/components/announcements/index.js
+++ b/apps/web/src/components/announcements/index.js
@@ -54,7 +54,11 @@ function Announcements({ announcements, removeAnnouncement }) {
)}
<Flex justifyContent="space-evenly" mt={1}>
{announcement.callToActions
- ?.filter((cta) => allowedPlatforms.indexOf(cta.platform) > -1)
+ ?.filter((cta) =>
+ cta.platforms.some(
+ (platform) => allowedPlatforms.indexOf(platform) > -1
+ )
+ )
.map((action, index) => (
<Button
flex={1}