Skip to content

Commit db96a27

Browse files
committed
fix return
1 parent 99c0a47 commit db96a27

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

apps/vps-web/src/main.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,9 @@ if (url.pathname === '/run-flow') {
362362
.then((response) => response.json())
363363
.then((data) => {
364364
console.log('Deployment response:', data);
365-
if (data.success) {
366-
alert('Deployment successful!');
367-
if (data.siteId) {
368-
setNetlifySiteId(data.siteId);
369-
}
370-
} else {
371-
alert('Deployment failed: ' + data.message);
365+
alert('Deployment successful!');
366+
if (data.siteId) {
367+
setNetlifySiteId(data.siteId);
372368
}
373369
})
374370
.catch((error) => {

0 commit comments

Comments
 (0)