Skip to content

Commit

Permalink
Small tweak for EFT unlocking (#2947)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Aug 6, 2024
1 parent f5f83f1 commit 2a7e7ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 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.59",
"version": "2.6.60",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default defineComponent({
ModalDialog
},
setup (props, { root }) {
const { createAccountPayment, getOrgPayments } = useOrgStore()
const { createAccountPayment, createOutstandingAccountPayment, getOrgPayments } = useOrgStore()
const { currentOrganization } = storeToRefs(useOrgStore())
const errorDialog = ref(null)
const stepper = ref(null)
Expand All @@ -180,7 +180,12 @@ export default defineComponent({
})
async function unlockAccount () {
const payment = await createAccountPayment()
let payment
if (state.hasEFTPaymentMethod) {
payment = await createOutstandingAccountPayment()
} else {
payment = await createAccountPayment()
}
const baseUrl = ConfigHelper.getAuthContextPath()
const returnUrl = `${baseUrl}/${Pages.ACCOUNT_UNLOCK_SUCCESS}`
const encodedUrl = encodeURIComponent(returnUrl)
Expand Down

0 comments on commit 2a7e7ae

Please sign in to comment.