From 332dd30c1d1473df34ee696e4353a2c3ef1bfa10 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 15 Dec 2022 17:27:28 +0800 Subject: [PATCH] Writing logic code is hard --- src/components/status.jsx | 67 ++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 03f0e76a..595361ba 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -662,39 +662,40 @@ function Status({ )} {' '} - {size !== 'l' && uri ? ( - - {' '} - - {createdAtDate.toLocaleString()} - - - ) : ( - - {' '} - - {createdAtDate.toLocaleString()} - - - )} + {size !== 'l' && + (uri ? ( + + {' '} + + {createdAtDate.toLocaleString()} + + + ) : ( + + {' '} + + {createdAtDate.toLocaleString()} + + + ))}