Fix delete wallet logs on server
This commit is contained in:
parent
3b0605a691
commit
4bf9954c4e
|
@ -206,7 +206,7 @@ export const WalletLoggerProvider = ({ children }) => {
|
||||||
|
|
||||||
const deleteLogs = useCallback(async (wallet) => {
|
const deleteLogs = useCallback(async (wallet) => {
|
||||||
if (!wallet || wallet.server) {
|
if (!wallet || wallet.server) {
|
||||||
await deleteServerWalletLogs({ variables: { wallet: wallet?.server } })
|
await deleteServerWalletLogs({ variables: { wallet: wallet?.server?.walletType } })
|
||||||
}
|
}
|
||||||
if (!wallet || wallet.sendPayment) {
|
if (!wallet || wallet.sendPayment) {
|
||||||
const tx = idb.current.transaction(idbStoreName, 'readwrite')
|
const tx = idb.current.transaction(idbStoreName, 'readwrite')
|
||||||
|
|
Loading…
Reference in New Issue