Fix copying sets - 1.117

Related to #143
This commit is contained in:
Brandon 2023-01-17 10:17:37 -07:00
parent 04ef72e48b
commit a8e99e2948
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ export default function EditSet() {
const [weight, setWeight] = useState(set.weight?.toString())
const [newImage, setNewImage] = useState(set.image)
const [unit, setUnit] = useState(set.unit)
const [created, setCreated] = useState(new Date(set.created))
const [created, setCreated] = useState(
set.created ? new Date(set.created) : new Date(),
)
const [showRemove, setShowRemove] = useState(false)
const [removeImage, setRemoveImage] = useState(false)
const weightRef = useRef<TextInput>(null)