Display "Push to Nostr" when origin URL is empty

This commit is contained in:
Alex Gleason committed 2025-11-14 21:19:01 -06:00
1 parent b55fd857e1
commit a6caf93e8b
1 file changed
+2 -2
+2 -2
View File
@@ -1138,7 +1138,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
)}
</div>
{gitStatus.remotes.length > 0 && (
{originUrl.trim() && (
<div className="flex gap-2">
<Button
onClick={handlePull}
@@ -1172,7 +1172,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
</div>
)}
{gitStatus.remotes.length === 0 && user && (
{!originUrl.trim() && user && (
<Button
onClick={handlePushToNostr}
disabled={isPushingToNostr || isPushing || isPulling}