[API Node] Show error toast (#3576)

This commit is contained in:
Christian Byrne
2025-04-23 09:32:52 +08:00
committed by GitHub
parent ab94a55858
commit a01aa39423

View File

@@ -245,6 +245,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
if (!response.ok) {
const errorData = await response.json()
error.value = `Failed to initiate credit purchase: ${errorData.message}`
showAuthErrorToast()
return null
}
@@ -287,6 +288,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
if (!response.ok) {
const errorData = await response.json()
error.value = `Failed to access billing portal: ${errorData.message}`
showAuthErrorToast()
return null
}