fix: Loading of new destinations

This commit is contained in:
Andras Bacsai 2022-04-14 18:34:43 +02:00
parent 3a252509d0
commit 5cd7533972

View File

@ -11,7 +11,9 @@
let loading = false;
async function handleSubmit() {
if (loading) return;
try {
loading = true;
await post('/new/destination/check.json', { network: payload.network });
const { id } = await post('/new/destination/docker.json', {
...payload