We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fcb2ba commit 3f63251Copy full SHA for 3f63251
frontend/src/screens/subwallets/SubwalletCreated.tsx
@@ -66,7 +66,11 @@ export function SubwalletCreated() {
66
const { data: app } = useApp(createAppResponse?.id, true);
67
const [intendedLightningAddress, setIntendedLightningAddress] =
68
React.useState(
69
- createAppResponse?.name.toLowerCase().replace(/[^a-z0-9]/g, "") || ""
+ createAppResponse?.name
70
+ .toLowerCase()
71
+ .trim()
72
+ .replace(/\s+/g, "_")
73
+ .replace(/[^a-z0-9_]/g, "") || ""
74
);
75
76
const { data: albyMe } = useAlbyMe();
0 commit comments