Skip to content

Commit c45a489

Browse files
chore: remove the "-temp" part of the shortcut name in the extension (#47)
* increase random id size in shortcut * remove the temp part of the shortcut name
1 parent 263812f commit c45a489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/extension/src/components/CreateShortcutsButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Visibility } from "@/types/proto/api/v2/common";
77
import { CreateShortcutResponse, OpenGraphMetadata } from "@/types/proto/api/v2/shortcut_service";
88
import Icon from "./Icon";
99

10-
const generateTempName = (length = 6) => {
10+
const generateName = (length = 8) => {
1111
let result = "";
1212
const characters = "abcdefghijklmnopqrstuvwxyz0123456789";
1313
const charactersLength = characters.length;
@@ -54,7 +54,7 @@ const CreateShortcutsButton = () => {
5454
const tab = tabs[0];
5555
setState((state) => ({
5656
...state,
57-
name: generateTempName() + "-temp",
57+
name: generateName(),
5858
title: tab.title || "",
5959
link: tab.url || "",
6060
}));

0 commit comments

Comments
 (0)