Never pass falsy value to date format

Closes #141

After adding TypeORM I had to remove the strict checking in TypeScript.
This leads to null errors such as this. Kind of annoying, but I think
the large reduction in code from adding TypeORM is worth it. We
shall see...
This commit is contained in:
Brandon Presley 2022-12-30 13:29:00 +13:00
parent e430873771
commit 3ed2d4f0cd
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ export default function EditSet() {
<AppInput
label="Created"
disabled
value={format(new Date(set.created), settings.date)}
value={format(new Date(set.created), settings.date || 'P')}
/>
)}