From b47a8badc96dd50b01ecf5f3de038049f240ee69 Mon Sep 17 00:00:00 2001 From: Sebastian Di Luzio Date: Wed, 24 Jul 2024 23:12:28 +0200 Subject: [PATCH] fix(frontend): sort resources alphabetically --- frontend/components/ProposeTrade.vue | 2 +- frontend/components/ShowAllResources.vue | 24 +++++++++++++++++++----- frontend/components/ShowOccupation.vue | 16 +++++++--------- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/frontend/components/ProposeTrade.vue b/frontend/components/ProposeTrade.vue index f64311d6..8a375a72 100644 --- a/frontend/components/ProposeTrade.vue +++ b/frontend/components/ProposeTrade.vue @@ -32,7 +32,7 @@ const offeredResources = ref<{ amount?: number, }>({}); -async function submitTrade() { +async function submitTrade () { const trade = { requestedResources: [requestedResources.value], offeredResources: [offeredResources.value], diff --git a/frontend/components/ShowAllResources.vue b/frontend/components/ShowAllResources.vue index a053ac2b..aa6d1995 100644 --- a/frontend/components/ShowAllResources.vue +++ b/frontend/components/ShowAllResources.vue @@ -1,10 +1,10 @@