supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
487 stars 121 forks source link

The appearance prop of Auth component throw exception when it's undefined #85

Closed giladtamam closed 1 year ago

giladtamam commented 1 year ago

Bug report

Clicking on 'Set object' of appearance prop on Auth storybook throw exception on line number 117 appearance?.theme[theme] should be fixed to appearance?.theme?.[theme]

To Reproduce

  1. Go to default Auth story
  2. Click on 'Set object' of appearance prop on controls tab
  3. See error

Expected behavior

Error should not be thrown when clicking on 'Set object' of appearance

Screenshots

image

System information

OS: macOS Browser: chrome Version of supabase-js: 2.0.0-rc.7 Version of Node.js: v16.18.1

silentworks commented 1 year ago

Storybook removed from this project and this is no longer a bug.