message: fix: getActiveKey is refactoring into switch
diff: @@ -55,19 +55,20 @@ function ServiceMetrics(): JSX.Element {
  const externalMetrics = 'External Calls';
  const getActiveKey = (): string => {
  - if (tab === null) {
  + switch (tab) {
  + case null: {
  return overMetrics;
  }
  -
  - if (tab === dbCallMetrics) {
  + case dbCallMetrics: {
  return dbCallMetrics;
  }
  -
  - if (tab === externalMetrics) {
  + case externalMetrics: {
  return externalMetrics;
  }
  -
  + default: {
  return overMetrics;
  + }
  + }
  };
  const activeKey = getActiveKey();
  