Refactor WalletService to use config for API endpoints and improve error handling
- Updated WalletService to utilize the centralized config for API base URLs, enhancing maintainability. - Replaced logger calls with console statements for error handling and success messages to simplify debugging. - Refactored the onInitialize method and other service methods to improve clarity and error management. These changes streamline the service's functionality and ensure consistent API endpoint usage.
This commit is contained in:
parent
f275d317ed
commit
e5054fdb9d
2 changed files with 45 additions and 40 deletions
|
|
@ -54,7 +54,7 @@ const groupedTransactions = computed(() => {
|
|||
async function refresh() {
|
||||
await walletService?.refresh()
|
||||
// Also refresh auth data to update balance
|
||||
await authService?.refreshUserData()
|
||||
await authService?.refresh()
|
||||
}
|
||||
|
||||
function getTransactionIcon(type: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue