Skip to content

Commit a01aa39

Browse files
[API Node] Show error toast (#3576)
1 parent ab94a55 commit a01aa39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stores/firebaseAuthStore.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
245245
if (!response.ok) {
246246
const errorData = await response.json()
247247
error.value = `Failed to initiate credit purchase: ${errorData.message}`
248+
showAuthErrorToast()
248249
return null
249250
}
250251

@@ -287,6 +288,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
287288
if (!response.ok) {
288289
const errorData = await response.json()
289290
error.value = `Failed to access billing portal: ${errorData.message}`
291+
showAuthErrorToast()
290292
return null
291293
}
292294

0 commit comments

Comments
 (0)