From ccf06386c6b153fe3c420e9200f481dc085e064a Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Thu, 2 Jun 2022 23:02:47 +0200
Subject: refactor: Rename accounts to portal

---
 apps/projects/src/app/pages/ui-workbench.svelte | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'apps/projects/src/app/pages/ui-workbench.svelte')

diff --git a/apps/projects/src/app/pages/ui-workbench.svelte b/apps/projects/src/app/pages/ui-workbench.svelte
index 5e92c9d..af1bf4e 100644
--- a/apps/projects/src/app/pages/ui-workbench.svelte
+++ b/apps/projects/src/app/pages/ui-workbench.svelte
@@ -1,7 +1,6 @@
 <script>
 	import Dropdown from "$shared/components/dropdown.svelte";
 	import {generate_random_hex_color} from "$shared/lib/colors";
-	import {uuid_v4} from "$shared/lib/helpers";
 
 	let entries = [];
 
@@ -9,7 +8,7 @@
 
 	for (let i = 1; i < 20; i++) {
 		entries.push({
-			id: uuid_v4(),
+			id: crypto.randomUUID(),
 			name: "Option " + i,
 			selected: false,
 			color: generate_random_hex_color(true)
@@ -18,7 +17,7 @@
 
 	function on_create({detail}) {
 		const copy = entries;
-		const entry = {id: uuid_v4(), name: detail.name};
+		const entry = {id: crypto.randomUUID(), name: detail.name};
 		copy.push(entry);
 		entries = copy;
 		console.log("Created", entry);
-- 
cgit v1.3

