mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-22 22:28:15 +00:00
Fix: sonarjs/no-gratuitous-expressions in Notification.tsx.
This commit is contained in:
parent
0b696b852e
commit
0718d9e0a7
@ -49,9 +49,7 @@ export function Notification({
|
||||
|
||||
if (timeout && onClose) {
|
||||
setTimeout(() => {
|
||||
if (onClose) {
|
||||
onClose(new Event('timeout'), 'timeout');
|
||||
}
|
||||
onClose(new Event('timeout'), 'timeout');
|
||||
}, timeout);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user