Fix delete wallet logs on server

This commit is contained in:
ekzyis 2024-07-03 04:23:19 +02:00
parent 3b0605a691
commit 4bf9954c4e
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ export const WalletLoggerProvider = ({ children }) => {
const deleteLogs = useCallback(async (wallet) => {
if (!wallet || wallet.server) {
await deleteServerWalletLogs({ variables: { wallet: wallet?.server } })
await deleteServerWalletLogs({ variables: { wallet: wallet?.server?.walletType } })
}
if (!wallet || wallet.sendPayment) {
const tx = idb.current.transaction(idbStoreName, 'readwrite')