format files

This commit is contained in:
maxDorninger
2025-10-27 22:26:59 +01:00
parent b846480b84
commit bb566e6eb9
6 changed files with 13 additions and 18 deletions

View File

@@ -100,9 +100,8 @@ export function formatSecondsToOptimalUnit(seconds: number): string {
return '0s';
}
export function handleQueryNotificationToast(count: number = 0, query: string = "") {
if (count > 0 && query.length > 0) toast.success(`Found ${count} ${count > 1 ? 'result' : 'results'} for search term "${query}".`);
export function handleQueryNotificationToast(count: number = 0, query: string = '') {
if (count > 0 && query.length > 0)
toast.success(`Found ${count} ${count > 1 ? 'result' : 'results'} for search term "${query}".`);
else if (count == 0) toast.info(`No results found for "${query}".`);
}
}