Skip to content
Snippets Groups Projects
Commit 7e72078f authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Fix adding new relay

parent 04c10cf5
Branches
No related tags found
1 merge request!160Fix Relays
......@@ -13,7 +13,7 @@ const relays = {
state.fetchedRelays = relays
},
ADD_RELAY: (state, relay) => {
state.fetchedRelays = [...state.fetchedRelays, relay]
state.fetchedRelays = [...state.fetchedRelays, { actor: relay }]
},
DELETE_RELAY: (state, relay) => {
state.fetchedRelays = state.fetchedRelays.filter(fetchedRelay => fetchedRelay !== relay)
......
......@@ -53,6 +53,7 @@ export default {
methods: {
followRelay() {
this.$store.dispatch('AddRelay', this.newRelay)
this.newRelay = ''
},
deleteRelay(relay) {
this.$store.dispatch('DeleteRelay', relay)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment