From 2d485a6d093495e51ec3bd33ac0cb938b15c2a99 Mon Sep 17 00:00:00 2001 From: Paul Atkins Date: Wed, 8 Apr 2026 08:40:01 +1000 Subject: [PATCH] fix: use generateUUID() instead of crypto.randomUUID() in ProfileView crypto.randomUUID() is only available in secure contexts (HTTPS/localhost). Replace direct call with the existing generateUUID() utility which falls back to a Math.random-based implementation when running over plain HTTP. --- frontend/src/views/ProfileView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/ProfileView.tsx b/frontend/src/views/ProfileView.tsx index 812f462..39fc76e 100644 --- a/frontend/src/views/ProfileView.tsx +++ b/frontend/src/views/ProfileView.tsx @@ -29,6 +29,7 @@ import { ErrorAlert } from '../components/ErrorAlert.js'; import { useHelp } from '../components/help/useHelp.js'; import { LoadingSpinner } from '../components/LoadingSpinner.js'; import { formatCurrency } from '../utils/formatters.js'; +import { generateUUID } from '../utils/uuid.js'; const bucketOptions = [ 'Daily Expenses', @@ -171,7 +172,7 @@ export function ProfileView() { const handleAddFixedExpense = () => { form.insertListItem('fixedExpenses', { - id: crypto.randomUUID(), + id: generateUUID(), name: '', bucket: bucketOptions[0], amountDollars: 0,