Skip to content

Commit 23e5dca

Browse files
committed
fix: loginflow === email bug
1 parent 489e488 commit 23e5dca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cbLoginSignup/Component.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@
134134
135135
async function sendOtp() {
136136
errorMessage = null
137-
console.log('urs is', loginFlow === 'email' ? apiMap.sendOtpEmail[appSubdomain] : apiMap.sendOtpMobile[appSubdomain] || 'http://localhost:3000/api/jwt/otp')
138-
const response = await fetch(loginFlow === 'email' ? apiMap.sendOtpEmail[appSubdomain] : apiMap.sendOtpMobile[appSubdomain] || 'http://localhost:3000/api/jwt/otp', {
137+
const response = await fetch((loginFlow === 'email' ? apiMap.sendOtpEmail[appSubdomain] : apiMap.sendOtpMobile[appSubdomain]) || 'http://localhost:3000/api/jwt/otp', {
139138
method: 'POST',
140139
headers: {
141140
'Content-Type': 'application/json'

0 commit comments

Comments
 (0)