Skip to content

Commit 7a8c99b

Browse files
committed
feat: make sure to use message for parse opportunity as fallback
1 parent 3b74a4b commit 7a8c99b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/shared/src/features/opportunity/mutations.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type {
55
ApiZodErrorExtension,
66
} from '../../graphql/common';
77
import { gqlClient, ApiError } from '../../graphql/common';
8-
import { labels } from '../../lib';
98
import {
109
ACCEPT_OPPORTUNITY_MATCH,
1110
ADD_OPPORTUNITY_SEATS_MUTATION,
@@ -474,7 +473,9 @@ export const getParseOpportunityMutationErrorMessage = (
474473
);
475474
}
476475

477-
return error?.response?.errors?.[0]?.message || labels.error.generic;
476+
return (
477+
error?.response?.errors?.[0]?.message || PARSE_OPPORTUNITY_ERROR_MESSAGE
478+
);
478479
};
479480

480481
export const parseOpportunityMutationOptions = () => {

0 commit comments

Comments
 (0)