mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
fix: cta.platforms is an array
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user