fix: always truthy title

pull/113/head
lyc8503 2025-09-20 21:33:43 +08:00
parent 1804e19a98
commit 16ef9bf3e7
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ export default function MaintenanceAlert({
title={ title={
( (
<span style={titleStyle} onClick={updateHash}> <span style={titleStyle} onClick={updateHash}>
{maintenance.title} {maintenance.title || 'Scheduled Maintenance'}
</span> </span>
) || 'Scheduled Maintenance' )
} }
color={maintenance.color || 'yellow'} color={maintenance.color || 'yellow'}
withCloseButton={false} withCloseButton={false}