Skip to content

Commit

Permalink
fix namor deprecation saltLength -> salt
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen committed Nov 28, 2023
1 parent c7f7b13 commit 4c9bcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/utils/cluster.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function generateClusterName(username = ''): string {
const datePart = today.toISOString().slice(5, 10);

// finally, get a random 3-part string of real words
const randomPart = namor.generate({ words: 3, saltLength: 0 });
const randomPart = namor.generate({ words: 3, salt: 0 });

// prepare to combine, but filter any empty part (only one that should ever be empty is user string)
const nameArray = [userPart, datePart, randomPart].filter(Boolean);
Expand Down

0 comments on commit 4c9bcdb

Please sign in to comment.