Skip to content

Commit

Permalink
fix: disconnect with alphanumeric near address (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhakim2902 authored and irmannmal committed Nov 5, 2022
1 parent d500706 commit 0dac3e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/api/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ export const disconnectNetwork = async (
payload: ConnectNetwork,
walletId: string,
): Promise<Wallet | null> => {
const address = isHex(`0x${walletId}`) ? `0x${walletId}` : walletId;
const {data} = await MyriadAPI().request<Wallet>({
url: `wallets/${walletId}`,
url: `wallets/${address}`,
method: 'DELETE',
data: payload,
});
Expand Down

0 comments on commit 0dac3e5

Please sign in to comment.