Skip to content

Commit c4a0040

Browse files
committed
refactor(capture-item): remove unnecessary .trim() on caption
1 parent fcc0568 commit c4a0040

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/features/home/capture-tab/capture-item/capture-item.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ export class CaptureItemComponent {
7171
)
7272
);
7373

74-
readonly hasCaption$ = this.proof$.pipe(
75-
map(proof => proof.caption.trim() !== '')
76-
);
74+
readonly hasCaption$ = this.proof$.pipe(map(proof => proof.caption !== ''));
7775

7876
readonly isVideo$ = this.proof$.pipe(
7977
concatMap(proof => proof.getFirstAssetMeta()),

0 commit comments

Comments
 (0)