Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Jan 15, 2021
1 parent b55523c commit dc856db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import React from 'react';
import { APMLinkExtendProps, useAPMHref } from './APMLink';

export function useServiceMapHref(serviceName?: string) {
const pathFor = serviceName
const path = serviceName
? `/services/${serviceName}/service-map`
: '/service-map';
return useAPMHref({ path: pathFor });
return useAPMHref({ path });
}

interface ServiceMapLinkProps extends APMLinkExtendProps {
Expand Down

0 comments on commit dc856db

Please sign in to comment.