fix: clean up no longer use variable

This commit is contained in:
dragarcia committed 2023-09-05 11:28:43 +08:00
1 parent a476f79bb7
commit 058211e6fc
1 file changed
+7 -9
@@ -55,15 +55,13 @@ const BackupItem = ({ projectRef, backup, index }: BackupItemProps) => {
if (backup.status === 'COMPLETED')
return (
<div className="flex space-x-4">
{backup.data.canRestore && (
<Button
type="default"
disabled={!canTriggerScheduledBackups || isRestoring}
onClick={onRestoreClick}
>
Restore
</Button>
)}
<Button
type="default"
disabled={!canTriggerScheduledBackups || isRestoring}
onClick={onRestoreClick}
>
Restore
</Button>
</div>
)
return <Badge color="yellow">Backup In Progress...</Badge>