Skip to content

Commit

Permalink
💄 style(css): className이 undefined일 경우 빈 문자열이 들어가도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2980 committed May 27, 2024
1 parent ede2764 commit b1462e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/molecules/StockPrice/StockPrice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const StockPrice = ({
const isNumber = (char: string) => Boolean(char.match(/[0-9]/));

return (
<div className={`flex whitespace-pre ${className}`} {...props}>
<div className={`flex whitespace-pre ${className ? className : ""}`} {...props}>
{Array.from(getFormatNumber({ number: price, decimalPoint, prefix, postfix })).map((str, i) => (
<If condition={animated && isNumber(str)} key={`sp-${i}`}>
<Then>
Expand Down

0 comments on commit b1462e2

Please sign in to comment.