@@ -18,7 +18,7 @@ import {
18
18
} from "Components/v2"
19
19
20
20
export interface OverviewRouteProps {
21
- ARTIST_COLLECTIONS_RAIL ?: string // TODO: remove after CollectionsRail a/b test
21
+ showCollectionsRail ?: boolean // TODO: remove after CollectionsRail a/b test
22
22
artist : Overview_artist & {
23
23
__fragments : object [ ]
24
24
}
@@ -34,11 +34,7 @@ class OverviewRoute extends React.Component<OverviewRouteProps, State> {
34
34
}
35
35
36
36
componentDidMount ( ) {
37
- // TODO: remove after CollectionsRail a/b test
38
- const showCollectionsRail =
39
- this . props . ARTIST_COLLECTIONS_RAIL || sd . ARTIST_COLLECTIONS_RAIL
40
-
41
- if ( showCollectionsRail ) {
37
+ if ( this . props . showCollectionsRail ) {
42
38
this . trackingCollectionsRailTest ( )
43
39
}
44
40
}
@@ -63,8 +59,7 @@ class OverviewRoute extends React.Component<OverviewRouteProps, State> {
63
59
@track < OverviewRouteProps > ( props => {
64
60
// TODO: remove after CollectionsRail a/b test
65
61
const experiment = "artist_collections_rail"
66
- const variation =
67
- props . ARTIST_COLLECTIONS_RAIL || sd . ARTIST_COLLECTIONS_RAIL
62
+ const variation = sd . ARTIST_COLLECTIONS_RAIL
68
63
69
64
return {
70
65
action_type : Schema . ActionType . ExperimentViewed ,
@@ -80,10 +75,7 @@ class OverviewRoute extends React.Component<OverviewRouteProps, State> {
80
75
}
81
76
82
77
render ( ) {
83
- const { artist } = this . props
84
- const collectionsRailVariation =
85
- this . props . ARTIST_COLLECTIONS_RAIL || sd . ARTIST_COLLECTIONS_RAIL
86
- const showCollectionsRail = collectionsRailVariation === "experiment"
78
+ const { artist, showCollectionsRail } = this . props
87
79
88
80
const showArtistInsights =
89
81
showMarketInsights ( this . props . artist ) || artist . insights . length > 0
0 commit comments