From de6a12a912edd6ee45e083d4bcf4f247378dba63 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Wed, 4 Jan 2023 00:30:39 +0100 Subject: [PATCH] END for me boi --- index.js | 2 +- static/css/main.css | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0b81d09..b3cb28a 100644 --- a/index.js +++ b/index.js @@ -558,7 +558,7 @@ fastify.post('/acceptTreasure', async (request, reply) => { if (treasureExists.success) { TreasureData[content.treasureUid].state = "Accepted"; saveData(treasurePath, TreasureData); - ActivityData[GoldenUsers[activityUid].activityUid].treasureState = "Accepted"; + ActivityData[TreasureData[content.treasureUid].activityUid].treasureState = "Accepted"; saveData(activityPath, ActivityData); GoldenUsers[TreasureData[content.treasureUid].activityUid] = { userUid: TreasureData[content.treasureUid].creator, diff --git a/static/css/main.css b/static/css/main.css index 2a4fd3d..06de272 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -242,13 +242,17 @@ button[type="submit"]:hover { border-left: 3px solid black; } -.activity-uid, .prank-uid, .prank-date, .treasure-uid { +.activity-uid, .prank-uid, .prank-date, .treasure-uid, .treasure-date { color: #00000078; margin-top: 5px; font-size: 12px; } -.prank-date { +.prank-date, .treasure-date { + margin-left: 10px; +} + +.treasure-image>a { margin-left: 10px; }