Signed-off-by: mbrucedogs <mbrucedogs@gmail.com>

This commit is contained in:
mbrucedogs 2025-07-21 12:59:42 -05:00
parent 9c14125fac
commit 330a3041a1
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ const SelectSinger: React.FC<SelectSingerProps> = ({ isOpen, onClose, song }) =>
order: nextOrder, order: nextOrder,
singer: { singer: {
name: singer.name, name: singer.name,
lastLogin: singer.lastLogin, lastLogin: singer.lastLogin || '',
}, },
song: song, song: song,
}; };

View File

@ -236,7 +236,7 @@ export const singerService = {
// Check if singer already exists // Check if singer already exists
const existingSinger = Object.values(currentSingers).find((singer) => const existingSinger = Object.values(currentSingers).find((singer) =>
(singer as Singer).name.toLowerCase() === singerName.toLowerCase() (String((singer as Singer).name || '').toLowerCase() === String(singerName || '').toLowerCase())
); );
if (existingSinger) { if (existingSinger) {