nit confirmCallback edit script

This commit is contained in:
Ruben Fiszel
2024-10-30 14:44:32 +01:00
parent ebd971f153
commit f2db73be86

View File

@@ -279,7 +279,11 @@
// Handle through confirmation modal
confirmCallback = async () => {
open = false
await editScript(stay, actual_parent_hash, deployMsg)
if (actual_parent_hash) {
await editScript(stay, actual_parent_hash, deployMsg)
} else {
sendUserToast('Could not fetch latest version of the script', true)
}
}
// Open confirmation modal
open = true