removed ternary operator usage for conditionally rendering LoadNewLogsButton

This commit is contained in:
TzeYiing committed 2021-12-06 18:30:32 +08:00
1 parent 353f632009
commit 0c693bf6f7
1 file changed
+1 -1
@@ -111,7 +111,7 @@ export const LogPage = () => {
{error && (
<Typography.Text className="text-center w-full block">Could not fetch data</Typography.Text>
)}
{newCount ? <LoadNewLogsButton onClick={handleRefresh} /> : null}
{newCount && <LoadNewLogsButton onClick={handleRefresh} />}
<LogTable data={logData} />
</SettingsLayout>
)