diff --git a/backend/src/graphql/resolver/TransactionResolver.ts b/backend/src/graphql/resolver/TransactionResolver.ts index 4bf4e7a17..8fe1e8484 100644 --- a/backend/src/graphql/resolver/TransactionResolver.ts +++ b/backend/src/graphql/resolver/TransactionResolver.ts @@ -373,7 +373,7 @@ export class TransactionResolver { // TODO: the detour over the public key is unnecessary const recipiantPublicKey = await getPublicKey(email) if (!recipiantPublicKey) { - throw new Error('recipiant not known') + throw new Error('recipient not known') } if (!isHexPublicKey(recipiantPublicKey)) { throw new Error('invalid recipiant public key') diff --git a/frontend/src/views/Pages/SendOverview.spec.js b/frontend/src/views/Pages/SendOverview.spec.js index 429b12baf..a03fd3a5a 100644 --- a/frontend/src/views/Pages/SendOverview.spec.js +++ b/frontend/src/views/Pages/SendOverview.spec.js @@ -112,7 +112,7 @@ describe('SendOverview', () => { describe('transaction is confirmed and server response is error', () => { beforeEach(async () => { jest.clearAllMocks() - sendMock.mockRejectedValue({ message: 'recipiant not known' }) + sendMock.mockRejectedValue({ message: 'recipient not known' }) await wrapper .findComponent({ name: 'TransactionConfirmation' }) .vm.$emit('send-transaction') diff --git a/frontend/src/views/Pages/SendOverview.vue b/frontend/src/views/Pages/SendOverview.vue index 18b62186c..d247e1bbe 100644 --- a/frontend/src/views/Pages/SendOverview.vue +++ b/frontend/src/views/Pages/SendOverview.vue @@ -78,6 +78,7 @@ export default { }, async sendTransaction() { this.loading = true + this.error = false this.$apollo .mutate({ mutation: sendCoins, diff --git a/frontend/src/views/Pages/SendOverview/GddSend/TransactionResult.vue b/frontend/src/views/Pages/SendOverview/GddSend/TransactionResult.vue index 7d036bef2..d447fa771 100644 --- a/frontend/src/views/Pages/SendOverview/GddSend/TransactionResult.vue +++ b/frontend/src/views/Pages/SendOverview/GddSend/TransactionResult.vue @@ -1,45 +1,47 @@