diff --git a/lib/stringUtils.ts b/lib/stringUtils.ts index b92f19ca..3f6b75b5 100644 --- a/lib/stringUtils.ts +++ b/lib/stringUtils.ts @@ -10,6 +10,6 @@ export function truncateWalletAddress(str: string) { } export function toKebabCase(str: string) { - return str.toLowerCase().replace(" ", "-"); + return str.toLowerCase().replace(/ /g, "-"); }