Skip to content

Commit

Permalink
🚑️ Fix cannot fetch stripe status
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Oct 30, 2024
1 parent 9ac860b commit 1ae580c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/StripeConnectCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ import { storeToRefs } from 'pinia'
import { LIKE_ADDRESS_REGEX } from '~/constant'
import { useStripeStore } from '~/stores/stripe'
const { LIKE_CO_API } = useRuntimeConfig().public
const stripeStore = useStripeStore()
const { fetchStripeConnectStatusByWallet } = stripeStore
Expand Down Expand Up @@ -206,15 +204,12 @@ async function onStripeConnectWalletInput (input: any) {
}
const status = getStripeConnectStatusByWallet.value(inputValue)
if (status) {
if (status.isReady) {
return status
}
isStripeConnectLoading.value = true
try {
await useFetch(
`${LIKE_CO_API}/likernft/book/user/connect/status?wallet=${inputValue}`
)
await fetchStripeConnectStatusByWallet(inputValue)
} catch (error) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 1ae580c

Please sign in to comment.