refactor: debug api chequebook - withdraw and deposit methods

This commit is contained in:
Vojtech Simetka
2021-04-02 11:23:13 +02:00
parent d9941038df
commit 456a18b9b6
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export default function DepositModal() {
beeDebugApi.chequebook.deposit(amount)
.then(res => {
setOpen(false);
handleToast(`Successful Deposit. Transaction ${res.data.transactionHash}`)
handleToast(`Successful Deposit. Transaction ${res.transactionHash}`)
})
.catch(error => {
handleToast('Error with Deposit')
+1 -1
View File
@@ -29,7 +29,7 @@ export default function WithdrawlModal() {
beeDebugApi.chequebook.withdraw(amount)
.then(res => {
setOpen(false);
handleToast(`Successful withdrawl. Transaction ${res.data.transactionHash}`)
handleToast(`Successful withdrawl. Transaction ${res.transactionHash}`)
})
.catch(error => {
handleToast('Error with withdrawl')