diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 579ef283..89691a02 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,9 +6,6 @@ name: Lint ############################# on: push: - branches-ignore: [main] - pull_request: - branches: [main] ############### # Set the Job # diff --git a/src/components/PreviewCard/PreviewCard.tsx b/src/components/PreviewCard/PreviewCard.tsx index 84910f88..8272b57b 100644 --- a/src/components/PreviewCard/PreviewCard.tsx +++ b/src/components/PreviewCard/PreviewCard.tsx @@ -59,23 +59,25 @@ function PreviewCard({ numberOfLines={3} style={[globalStyles.subtext, styles.storyDescription]} > - "{cheerio.load(excerpt.html).text()}" + "{cheerio.load(excerpt.html ?? '').text()}" - - - {tags[0]} - - + {(tags?.length ?? 0) > 0 && ( + + + {tags[0]} + + + )} {' '} - + {tags.length - 1} more tags + + {(tags?.length ?? 1) - 1} more tags diff --git a/src/components/PreviewCard/styles.ts b/src/components/PreviewCard/styles.ts index e8af8f2c..493e3061 100644 --- a/src/components/PreviewCard/styles.ts +++ b/src/components/PreviewCard/styles.ts @@ -81,6 +81,7 @@ const styles = StyleSheet.create({ paddingTop: 4, }, moreTags: { + paddingVertical: 10, paddingRight: 12, alignItems: 'center', justifyContent: 'center',