Skip to content

Commit f917af2

Browse files
committed
fix: 알림 제목 표시를 위한 기호 처리 로직 수정
1 parent 77570c3 commit f917af2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/notificationMapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface NotificationItem {
1919
export const mapNotificationResponseToItem = (response: NotificationResponse): NotificationItem => {
2020
const title = response.notificationType === 'SCORE_SPIKE' ? '인간지표 변동 알림' : '';
2121
const scoreDiff = (response.newScore ?? 0) - (response.oldScore ?? 0);
22-
const sign = !scoreDiff ? '' : scoreDiff > 0 ? '+' : '-';
22+
const sign = !scoreDiff ? '' : scoreDiff > 0 ? '+' : '';
2323
const emoji = scoreDiff > 0 ? '🔥' : '💧';
2424
const content = `[${response.stockName}] 인간지표 ${sign}${scoreDiff}${emoji}`;
2525
const description = `민심 ${sign === '+' ? '급등' : '급락'} 중! 지금 확인해보세요`;

0 commit comments

Comments
 (0)