알림 시간봉 오류 수정
This commit is contained in:
@@ -187,6 +187,7 @@ export const TradeNotificationProvider: React.FC<ProviderProps> = ({
|
||||
}
|
||||
for (const n of prev) {
|
||||
if (hidden.has(n.id)) continue;
|
||||
// 서버 이력에 없는 STOMP-only 항목은 세션 전환 후 제거 (serverOnly가 아닐 때만 병합)
|
||||
if (!map.has(n.id)) map.set(n.id, n);
|
||||
else if (n.isRead) map.set(n.id, { ...map.get(n.id)!, isRead: true });
|
||||
}
|
||||
@@ -213,6 +214,7 @@ export const TradeNotificationProvider: React.FC<ProviderProps> = ({
|
||||
|
||||
useEffect(() => {
|
||||
if (!settingsLoaded) return;
|
||||
setToastNotifications([]);
|
||||
void refreshHistory({ serverOnly: true, rawServerList: true });
|
||||
}, [refreshHistory, settingsLoaded, settingsSessionKey]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user