Skip to content

Commit

Permalink
Replace hyphens in first name with non-breaking hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
yrjarv committed Sep 24, 2024
1 parent 216dbd2 commit 0b9a317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Login/LoginButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function LoginButton(props) {

const buttonText = () => {
if (session.data != undefined) {
let firstName = session.data.user.name.split(" ")[0]
let firstName = session.data.user.name.split(" ")[0].replace('-', '‑')
// Shorten the first name if it is longer than 15 characters
if (firstName.length > 15) {
firstName = firstName.slice(0, 12) + "..."
Expand Down

0 comments on commit 0b9a317

Please sign in to comment.