Skip to content

Commit

Permalink
refactor(capture-item): remove unnecessary .trim() on caption
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanmyrza committed Feb 6, 2024
1 parent 0ca8135 commit 6441b2a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export class CaptureItemComponent {
)
);

readonly hasCaption$ = this.proof$.pipe(
map(proof => proof.caption.trim() !== '')
);
readonly hasCaption$ = this.proof$.pipe(map(proof => proof.caption !== ''));

readonly isVideo$ = this.proof$.pipe(
concatMap(proof => proof.getFirstAssetMeta()),
Expand Down

0 comments on commit 6441b2a

Please sign in to comment.