Skip to content

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

fix: filter announcement cta platforms correctly

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