supabase / dbdev

Database Package Registry for Postgres
https://database.dev/
Apache License 2.0
370 stars 19 forks source link

Fix error if display name is missing #78

Closed imor closed 1 year ago

imor commented 1 year ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

If a user doesn't have a display name an error occurs in the UI when they login. The error is in the code which tries to show the navbar character.

What is the new behavior?

If the display name is missing the UI falls back to the first character of the email.

Additional context

In case you are wondering the error occurs while displaying the R in the top right:

image

The way to have no display name is to use the current CLI with the command cargo run signup which doesn't take a display name.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dbdev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2023 3:16pm