Skip to content

Commit

Permalink
replace R.contains to R.includes as Ramda contains is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
rachellougee committed Jun 4, 2024
1 parent 68de50d commit 889823d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/lib/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getHLSEncodedUrl = (video: Video): string | null => {
}

export const videoIsProcessing = R.compose(
R.contains(R.__, [
R.includes(R.__, [
VIDEO_STATUS_CREATED,
VIDEO_STATUS_UPLOADING,
VIDEO_STATUS_TRANSCODING
Expand All @@ -53,7 +53,7 @@ export const videoIsProcessing = R.compose(
)

export const videoHasError = R.compose(
R.contains(R.__, [
R.includes(R.__, [
VIDEO_STATUS_UPLOAD_FAILED,
VIDEO_STATUS_TRANSCODE_FAILED_INTERNAL,
VIDEO_STATUS_TRANSCODE_FAILED_VIDEO,
Expand Down

0 comments on commit 889823d

Please sign in to comment.