Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
043a3f3
add code to support jumping to a certain step
gabrielremote Jun 24, 2025
2f9cebd
fix some tests
gabrielremote Jun 24, 2025
3d67e47
fix some test setup
gabrielremote Jun 24, 2025
4dc3896
fix more tests
gabrielremote Jun 24, 2025
e150719
fix more tests
gabrielremote Jun 24, 2025
6edea0f
remove logs
gabrielremote Jun 24, 2025
fcb8bfb
fix tests
gabrielremote Jun 25, 2025
ee004cc
remove logs
gabrielremote Jun 25, 2025
370ebbf
fix more tests
gabrielremote Jun 25, 2025
4987ee3
fix more tests
gabrielremote Jun 25, 2025
4f15586
Merge branch 'main' into recover-employment-from-the-latest-succesful…
gabrielremote Jun 25, 2025
c3f0c96
fix tests
gabrielremote Jun 25, 2025
01b3b9d
correct endpoint call
gabrielremote Jun 25, 2025
6c674ef
fix tests
gabrielremote Jun 25, 2025
b2f006e
Merge branch 'main' into recover-employment-from-the-latest-succesful…
gabrielremote Jun 25, 2025
7c4cdf3
fix test
gabrielremote Jun 28, 2025
4d356cc
fix tests
gabrielremote Jun 28, 2025
5511846
fix test
gabrielremote Jun 28, 2025
50b15b7
fix tests
gabrielremote Jun 28, 2025
5b8ad3c
fix more tests
gabrielremote Jun 28, 2025
03db079
fix tests
gabrielremote Jun 28, 2025
9566ec1
fix loading
gabrielremote Jun 29, 2025
8ab1c1a
fix loadings
gabrielremote Jun 29, 2025
2961ca3
remove initialNavigationRef
gabrielremote Jun 29, 2025
3ec12dc
add test
gabrielremote Jun 30, 2025
cb71773
move utility
gabrielremote Jun 30, 2025
1efdf92
Merge branch 'main' into recover-employment-from-the-latest-succesful…
gabrielremote Jul 1, 2025
39c9c42
Merge branch 'main' into recover-employment-from-the-latest-succesful…
gabrielremote Jul 4, 2025
d626174
fix conflicts
gabrielremote Jul 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/flows/Onboarding/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export const useJSONSchemaForm = ({

export const useBenefitOffersSchema = (
employmentId: string,
stepName: string,
fieldValues: FieldValues,
options: OnboardingFlowParams['options'],
) => {
Expand All @@ -255,9 +256,9 @@ export const useBenefitOffersSchema = (
: {};
const { client } = useClient();
return useQuery({
queryKey: ['benefit-offers-schema', employmentId],
queryKey: ['benefit-offers-schema', employmentId, stepName],
retry: false,
enabled: !!employmentId,
enabled: !!employmentId || stepName === 'benefits',
queryFn: async () => {
const response = await getShowSchema({
client: client as Client,
Expand Down
Loading
Loading