Skip to content

Commit 1bf961c

Browse files
Replaced "appboy" references by "braze" references
1 parent e9ee305 commit 1bf961c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

dotcom-rendering/src/components/StickyBottomBanner/BrazeBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const containerStyles = css`
4141
// - We're not on a Glabs paid content page
4242
// - We've got a Braze UUID from the API, given a user's ID Creds
4343
// - The user has given Consent via CCPA or TCFV2
44-
// - The Braze websdk appboy initialisation does not throw an error
44+
// - The Braze websdk initialisation does not throw an error
4545
// - The Braze app Boy subscription to in app message returns meta info
4646
// OR
4747
// - The force-braze-message query string arg is passed

dotcom-rendering/src/lib/braze/buildBrazeMessaging.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const maybeWipeUserData = async (
3535
if (userHasLoggedOut || userHasRemovedConsent || brazeHasBeenDisabled) {
3636
try {
3737
if (apiKey) {
38-
const appboy = await getInitialisedBraze(apiKey);
39-
appboy.wipeData();
38+
const braze = await getInitialisedBraze(apiKey);
39+
braze.wipeData();
4040
}
4141
LocalMessageCache.clear();
4242
clearHasCurrentBrazeUser();
@@ -98,7 +98,7 @@ export const buildBrazeMessaging = async (
9898
'braze-sdk-load',
9999
);
100100

101-
const appboy = await getInitialisedBraze(
101+
const braze = await getInitialisedBraze(
102102
dependenciesResult.data.apiKey as string,
103103
);
104104

@@ -116,14 +116,14 @@ export const buildBrazeMessaging = async (
116116
};
117117

118118
setHasCurrentBrazeUser();
119-
appboy.changeUser(dependenciesResult.data.brazeUuid as string);
120-
appboy.openSession();
119+
braze.changeUser(dependenciesResult.data.brazeUuid as string);
120+
braze.openSession();
121121

122122
const brazeCards = window.guardian.config.switches.brazeContentCards
123-
? new BrazeCards(appboy, errorHandler)
123+
? new BrazeCards(braze, errorHandler)
124124
: new NullBrazeCards();
125125
const brazeMessages = new BrazeMessages(
126-
appboy,
126+
braze,
127127
LocalMessageCache,
128128
errorHandler,
129129
canRenderBrazeMsg,

0 commit comments

Comments
 (0)