File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,18 +111,14 @@ export function createGravityProvider(config: { apiKey: string }): AdProvider {
111111 fetch,
112112 } = input
113113
114- const requestedPlacementIds =
115- input . surface === 'waiting_room' ? WAITING_ROOM_PLACEMENT_IDS : undefined
116- const variant = requestedPlacementIds ?. length
117- ? requestedPlacementIds . length === 1
118- ? 'banner'
119- : 'choice'
120- : getGravityVariant ( userId )
114+ const variant =
115+ input . surface === 'waiting_room' ? 'choice' : getGravityVariant ( userId )
121116 const filteredMessages = prepareGravityMessages ( messages )
122117
123- const placementIds = requestedPlacementIds ?. length
124- ? requestedPlacementIds
125- : variant === 'choice'
118+ const placementIds =
119+ input . surface === 'waiting_room'
120+ ? WAITING_ROOM_PLACEMENT_IDS
121+ : variant === 'choice'
126122 ? CHOICE_PLACEMENT_IDS
127123 : [ BANNER_PLACEMENT_ID ]
128124
You can’t perform that action at this time.
0 commit comments