We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed52b56 commit e98bcefCopy full SHA for e98bcef
1 file changed
src/components/Modals/AddContactModal.jsx
@@ -79,7 +79,11 @@ const AddContactModal = ({
79
const [processing, setProcessing] = useState(false);
80
const theme = useTheme();
81
const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm'));
82
- const [oidcProviders] = useState([...ENV.VITE_SUGGESTED_OIDC_OPTIONS.split(', '), 'Other']);
+ const [oidcProviders] = useState(() =>
83
+ ENV.VITE_SUGGESTED_OIDC_OPTIONS.split(', ') !== undefined
84
+ ? [...ENV.VITE_SUGGESTED_OIDC_OPTIONS.split(', '), 'Other']
85
+ : ['Other']
86
+ );
87
const [Oidc, setOIDC] = useState('');
88
const [isSubmittable, setIsSubmittable] = useState(false);
89
0 commit comments