Skip to content

Commit

Permalink
Fix nested string literal code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
zgong-gov committed Nov 28, 2024
1 parent f37e1b9 commit 0587f81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ export const DisplayInfo = memo(
);

const phoneDisplay = (phone: string, ext?: Nullable<string>) => {
const extDisplay = ext ? `Ext: ${ext}` : "";
return `${formatPhoneNumber(
phone,
)} ${ext ? `Ext: ${ext}` : ""}`;
)} ${extDisplay}`;
};

return companyInfo ? (
Expand Down

0 comments on commit 0587f81

Please sign in to comment.