Remove redundant type inferrence

This commit is contained in:
Maciej Pędzich 2023-06-09 18:50:41 +02:00
parent fd0d0f2ff4
commit 89003918d8

View File

@ -50,7 +50,7 @@ const pickPhotosForNewVote = () => {
}; };
const submitVote = (result: 0 | 0.5 | 1) => { const submitVote = (result: 0 | 0.5 | 1) => {
const fileNames = ([...photosInCurrentVote.value] as Photo[]).map( const fileNames = [...photosInCurrentVote.value].map(
({ fileName }) => fileName ({ fileName }) => fileName
) as [string, string]; ) as [string, string];