Skip to content

Commit 23f4592

Browse files
committed
fix typo
1 parent 69a0b19 commit 23f4592

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

static/app/components/events/autofix/v3/useAutoTriggerAutofix.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {GroupFixture} from 'sentry-fixture/group';
33
import {renderHook} from 'sentry-test/reactTestingLibrary';
44

55
import type {useExplorerAutofix} from 'sentry/components/events/autofix/useExplorerAutofix';
6-
import {useAutotriggerAutofix} from 'sentry/components/events/autofix/v3/useAutotriggerAutofix';
6+
import {useAutoTriggerAutofix} from 'sentry/components/events/autofix/v3/useAutoTriggerAutofix';
77

88
function makeAutofix(
99
overrides: Partial<ReturnType<typeof useExplorerAutofix>> = {}
@@ -20,15 +20,15 @@ function makeAutofix(
2020
} as ReturnType<typeof useExplorerAutofix>;
2121
}
2222

23-
describe('useAutotriggerAutofix', () => {
23+
describe('useAutoTriggerAutofix', () => {
2424
it('starts root_cause when seerAutofixLastTriggered is set but seerExplorerAutofixLastTriggered is not', () => {
2525
const autofix = makeAutofix();
2626
const group = GroupFixture({
2727
seerAutofixLastTriggered: '2024-01-01T00:00:00Z',
2828
seerExplorerAutofixLastTriggered: null,
2929
});
3030

31-
renderHook(() => useAutotriggerAutofix({autofix, group}));
31+
renderHook(() => useAutoTriggerAutofix({autofix, group}));
3232

3333
expect(autofix.startStep).toHaveBeenCalledWith('root_cause');
3434
expect(autofix.startStep).toHaveBeenCalledTimes(1);
@@ -41,7 +41,7 @@ describe('useAutotriggerAutofix', () => {
4141
seerExplorerAutofixLastTriggered: '2024-01-02T00:00:00Z',
4242
});
4343

44-
renderHook(() => useAutotriggerAutofix({autofix, group}));
44+
renderHook(() => useAutoTriggerAutofix({autofix, group}));
4545

4646
expect(autofix.startStep).not.toHaveBeenCalled();
4747
});
@@ -53,7 +53,7 @@ describe('useAutotriggerAutofix', () => {
5353
seerExplorerAutofixLastTriggered: null,
5454
});
5555

56-
const {rerender} = renderHook(() => useAutotriggerAutofix({autofix, group}));
56+
const {rerender} = renderHook(() => useAutoTriggerAutofix({autofix, group}));
5757

5858
rerender();
5959
rerender();

static/app/components/events/autofix/v3/useAutoTriggerAutofix.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import {useEffect, useRef} from 'react';
33
import {useExplorerAutofix} from 'sentry/components/events/autofix/useExplorerAutofix';
44
import type {Group} from 'sentry/types/group';
55

6-
interface UseAutotriggerAutofixOptions {
6+
interface UseAutoTriggerAutofixOptions {
77
autofix: ReturnType<typeof useExplorerAutofix>;
88
group: Group;
99
}
1010

11-
export function useAutotriggerAutofix({autofix, group}: UseAutotriggerAutofixOptions) {
11+
export function useAutoTriggerAutofix({autofix, group}: UseAutoTriggerAutofixOptions) {
1212
const alreadyTriggered = useRef(false);
1313

1414
// extract startStep first here so we can depend on it directly as `autofix` itself is unstable.

static/app/views/issueDetails/streamline/sidebar/autofixSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
RootCausePreview,
3030
SolutionPreview,
3131
} from 'sentry/components/events/autofix/v3/autofixPreviews';
32-
import {useAutotriggerAutofix} from 'sentry/components/events/autofix/v3/useAutotriggerAutofix';
32+
import {useAutoTriggerAutofix} from 'sentry/components/events/autofix/v3/useAutoTriggerAutofix';
3333
import {useGroupSummaryData} from 'sentry/components/group/groupSummary';
3434
import {HookOrDefault} from 'sentry/components/hookOrDefault';
3535
import {Placeholder} from 'sentry/components/placeholder';
@@ -126,7 +126,7 @@ export function AutofixContent({aiConfig, group, project, event}: AutofixContent
126126
const autofix = useExplorerAutofix(group.id);
127127
const {data: setupCheck, isPending} = useSeerOnboardingCheck();
128128

129-
useAutotriggerAutofix({autofix, group});
129+
useAutoTriggerAutofix({autofix, group});
130130

131131
if (
132132
// waiting on the onboarding checks to load

0 commit comments

Comments
 (0)