File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,13 @@ export interface TreatmentContentDecoded {
9898 second_cta_name ?: string ;
9999}
100100
101+ // The treatmentType is how Auxia tells the client which type of gate to display
102+ // The spelling of "dismissible" is inconsistent here, but this is because the treatments were set up this way in Auxia.
101103export type AuxiaAPIResponseDataUserTreatmentType =
102104 | 'DISMISSABLE_SIGN_IN_GATE'
103- | 'NONDISMISSIBLE_SIGN_IN_GATE' ;
105+ | 'NONDISMISSIBLE_SIGN_IN_GATE'
106+ | 'DISMISSABLE_SIGN_IN_GATE_POPUP'
107+ | 'NONDISMISSIBLE_SIGN_IN_GATE_POPUP' ;
104108
105109export interface AuxiaAPIResponseDataUserTreatment {
106110 treatmentId : string ;
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ export const getAuxiaGateVersion = (
258258 String ( version ) . toLowerCase ( ) . endsWith ( 'v2' ) ||
259259 String ( userTreatment ?. treatmentType )
260260 . toLowerCase ( )
261- . includes ( 'v2 ')
261+ . endsWith ( 'POPUP ')
262262 ) {
263263 return 'v2' ;
264264 }
You can’t perform that action at this time.
0 commit comments