We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77570c3 commit f917af2Copy full SHA for f917af2
1 file changed
src/utils/notificationMapper.ts
@@ -19,7 +19,7 @@ export interface NotificationItem {
19
export const mapNotificationResponseToItem = (response: NotificationResponse): NotificationItem => {
20
const title = response.notificationType === 'SCORE_SPIKE' ? '인간지표 변동 알림' : '';
21
const scoreDiff = (response.newScore ?? 0) - (response.oldScore ?? 0);
22
- const sign = !scoreDiff ? '' : scoreDiff > 0 ? '+' : '-';
+ const sign = !scoreDiff ? '' : scoreDiff > 0 ? '+' : '';
23
const emoji = scoreDiff > 0 ? '🔥' : '💧';
24
const content = `[${response.stockName}] 인간지표 ${sign}${scoreDiff}점${emoji}`;
25
const description = `민심 ${sign === '+' ? '급등' : '급락'} 중! 지금 확인해보세요`;
0 commit comments