Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoSanchez committed Sep 11, 2024
1 parent 269c4e9 commit 722e293
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/connectSplit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { connectSplit } from '../react-redux/connectSplit';
const FeatureComponent = createComponentWithExposedProps('FeatureComponent');

describe('connectSplit', () => {
it('should pass the Split piece of state and binded getTreatment as props', () => {
it('should pass the Split piece of state and bound getTreatment as props', () => {
const store = mockStore(STATE_READY);

const ConnectedFeatureComponent: React.ComponentType<any> = connectSplit()(FeatureComponent);
Expand Down
2 changes: 1 addition & 1 deletion src/asyncActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface ISplitSdk {
splitio: ISplitFactoryBuilder;
factory: SplitIO.ISDK;
sharedClients: { [stringKey: string]: SplitIO.IClient };
isDetached: boolean; // true: server-side, false: client-side (i.e., client with binded key)
isDetached: boolean; // true: server-side, false: client-side (i.e., client with bound key)
dispatch: Dispatch<Action>;
}

Expand Down
2 changes: 1 addition & 1 deletion src/react-redux/connectSplit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { defaultGetSplitState } from '../selectors';
/**
* This decorator connects your components with:
* - The Split state at Redux, under the prop key `split`.
* - The action creator `getTreatments`, binded to the `dispatch` of your store.
* - The action creator `getTreatments`, bound to the `dispatch` of your store.
*
* @param {IGetSplitState} getSplitState optional function that takes the entire Redux state and returns
* the state slice which corresponds to where the Split reducer was mounted. This functionality is rarely
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function matching(key?: SplitIO.SplitKey): string | undefined {

export function isMainClient(key?: SplitIO.SplitKey) {
const stringKey = matching(key);
return splitSdk.isDetached || !stringKey || stringKey === matching((splitSdk.config as SplitIO.IBrowserSettings).core.key);
return splitSdk.isDetached || !stringKey || stringKey === matching(splitSdk.config && (splitSdk.config as SplitIO.IBrowserSettings).core.key);
}

/**
Expand Down

0 comments on commit 722e293

Please sign in to comment.