Skip to content

Commit be2c211

Browse files
committed
remove unused support handling from useActionableErrorMap
1 parent a7ac631 commit be2c211

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/views/actionableError/useActionableErrorMap.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ type ActionableErrorMapEntry = {
1717
secondaryActions?: ActionableErrorAction
1818
}
1919

20-
export const useActionableErrorMap = (
21-
jobDetailCode: number,
22-
// setShowSupport: React.Dispatch<React.SetStateAction<boolean>>,
23-
) => {
20+
export const useActionableErrorMap = (jobDetailCode: number) => {
2421
const postMessageFunctions = useContext(PostMessageContext)
2522
const initialConfig = useSelector(selectInitialConfig)
2623
const dispatch = useDispatch()
@@ -33,7 +30,6 @@ export const useActionableErrorMap = (
3330
payload: initialConfig.mode || AGG_MODE,
3431
})
3532
}
36-
// const goToSupport = () => setShowSupport(true)
3733
const goToCredentials = () => dispatch({ type: ActionTypes.ACTIONABLE_ERROR_LOG_IN_AGAIN })
3834

3935
// AED Step 3: Add code mapping for new codes here

0 commit comments

Comments
 (0)