From 61fe53660b3b3e4e1072e92fa7d06977cc076a73 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 4 Aug 2020 20:01:09 +0200 Subject: [PATCH] IMprove trade deletion message --- src/store/modules/ftbot.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/store/modules/ftbot.ts b/src/store/modules/ftbot.ts index 2a2a9580..ebe51781 100644 --- a/src/store/modules/ftbot.ts +++ b/src/store/modules/ftbot.ts @@ -154,7 +154,11 @@ export default { async deleteTrade({ dispatch }, tradeid: string) { try { const res = await api.delete(`/trades/${tradeid}`); - dispatch('alerts/addAlert', { message: `Deleted trade ${tradeid}` }, { root: true }); + dispatch( + 'alerts/addAlert', + { message: res.data.result_msg ? res.data.result_msg : `Deleted Trade ${tradeid}` }, + { root: true }, + ); return Promise.resolve(res); } catch (error) { console.error(error.response);