more fucking UI fixes
Some checks are pending
CI Pipeline / Run Tests (push) Waiting to run
CI Pipeline / Lint Code (push) Waiting to run
CI Pipeline / Security Scan (push) Waiting to run
CI Pipeline / E2E Tests (push) Blocked by required conditions

This commit is contained in:
Enki 2025-08-27 22:02:14 -07:00
parent aa510238ab
commit bb959e3824

View File

@ -1611,8 +1611,14 @@
} }
async function shareFile(hash) { async function shareFile(hash) {
console.log('shareFile called with hash:', hash);
console.log('userFiles array:', userFiles);
const file = userFiles.find(f => f.hash === hash); const file = userFiles.find(f => f.hash === hash);
if (!file) return; console.log('Found file:', file);
if (!file) {
console.error('File not found in userFiles array');
return;
}
const baseUrl = window.location.origin; const baseUrl = window.location.origin;
const links = { const links = {