Skip to content

Commit

Permalink
24004 - update paymentMethodChanged when settings bcolInfo, fix error…
Browse files Browse the repository at this point in the history
… handling (#3132)
  • Loading branch information
seeker25 authored Oct 30, 2024
1 parent 1817b18 commit d2bede5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.103",
"version": "2.6.104",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ export default defineComponent({
state.paymentMethodChanged = false
switch (error.response.status) {
case 409:
state.errorMessage = error.response.data.message
state.errorMessage = error.response.data.message?.detail || error.response.data.message
break
case 400:
state.errorMessage = error.response.data.message
state.errorMessage = error.response.data.message?.detail || error.response.data.message
break
default:
state.errorMessage = 'An error occurred while attempting to create your account.'
Expand All @@ -392,6 +392,7 @@ export default defineComponent({
function setBcolInfo (bcolProfile: BcolProfile) {
state.bcolInfo = bcolProfile
emit('emit-bcol-info', state.bcolInfo)
state.paymentMethodChanged = true
}
onMounted(async () => {
Expand Down
4 changes: 2 additions & 2 deletions auth-web/src/components/auth/create-account/BcolLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ export default class BcolLogin extends Vue {
this.isLoading = false
switch (err.response.status) {
case 409:
this.errorMessage = err.response.data.message
this.errorMessage = err.response.data.message?.detail || err.response.data.message
break
case 400:
this.errorMessage = err.response.data.message
this.errorMessage = err.response.data.message?.detail || err.response.data.message
break
default:
this.errorMessage = 'An error occurred while attempting to create your account.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default defineComponent({
case 409:
break
case 400:
errorMessage.value = err.response.data.message
errorMessage.value = err.response.data.message?.detail || err.response.data.message
break
default:
errorMessage.value = 'An error occurred while attempting to create your account.'
Expand Down

0 comments on commit d2bede5

Please sign in to comment.