Skip to content

Commit

Permalink
Merge pull request #250 from hotosm/feat/user-profile
Browse files Browse the repository at this point in the history
Fix: Date format and update button text
  • Loading branch information
nrjadkry authored Sep 30, 2024
2 parents abdaf91 + 8a09e11 commit 5e74ce4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ FRONTEND_TARGET_OVERRIDE=${FRONTEND_TARGET_OVERRIDE:-development}
SITE_NAME=${SITE_NAME:-"DTM-Drone Tasking Manager"}
BASE_URL=${BASE_URL:-http://localhost:8000/api}
API_URL_V1=${API_URL_V1:-http://localhost:8000/api}
NODE_ODM_URL=${NODE_ODM_URL:-http://odm-api:3000}


### ODM ###
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState } from 'react';
import { useParams } from 'react-router-dom';
import { format } from 'date-fns';
import { toast } from 'react-toastify';
import {
useGetIndividualTaskQuery,
Expand Down Expand Up @@ -42,7 +41,7 @@ const DescriptionBox = () => {
{
name: 'Created date',
value: taskData?.created_at
? format(new Date(taskData?.created_at), 'yyyy-mm-dd')
? taskData?.created_at?.slice(0, 10) || '-'
: null,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ const MapSection = ({ className }: { className?: string }) => {
isLoading={isUpdatingTakeOffPoint}
>
{newTakeOffPoint
? 'Save Starting Point'
: 'Change Starting Point'}
? 'Save Take off Point'
: 'Change Take off Point'}
</Button>
</div>

Expand Down

0 comments on commit 5e74ce4

Please sign in to comment.