diff --git a/src/composables/useHasAccount.js b/src/composables/useHasAccount.js new file mode 100644 index 000000000..1014bedf3 --- /dev/null +++ b/src/composables/useHasAccount.js @@ -0,0 +1,6 @@ +import axios from 'axios'; + +export default async (id) => { + const { data } = await axios.get(`Accounts/${id}/exists`); + return data.exists; +}; diff --git a/src/pages/Account/Card/AccountDescriptor.vue b/src/pages/Account/Card/AccountDescriptor.vue index 3156f8e1e..e96b4e0c5 100644 --- a/src/pages/Account/Card/AccountDescriptor.vue +++ b/src/pages/Account/Card/AccountDescriptor.vue @@ -1,13 +1,13 @@