Skip to content

Commit

Permalink
Load funding info when going forward from enter git url
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Brown committed Dec 11, 2024
1 parent 4017139 commit ffe189e
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@
$context.projectColor = seededRandomElement(possibleColors, project.account.accountId);
validationState = { type: 'valid' };
// TODO: do before heading to next step?
loadingFundingInfo(context);
} catch (error: unknown) {
// eslint-disable-next-line no-console
console.error(error);
Expand Down Expand Up @@ -261,6 +259,15 @@
submitInput();
}
function goForward() {
dispatch('await', {
message: 'Gathering project information…',
promise: async () => {
return loadingFundingInfo(context);
},
});
}
onMount(() => {
modal.setWarnOnNavigate(true);
});
Expand Down Expand Up @@ -300,9 +307,7 @@
{/if}
<svelte:fragment slot="actions">
{#if formValid}
<Button icon={ArrowRightIcon} variant="primary" on:click={() => dispatch('goForward')}
>Continue</Button
>
<Button icon={ArrowRightIcon} variant="primary" on:click={goForward}>Continue</Button>
{:else}
<Button
disabled={!inputSubmittable}
Expand Down

0 comments on commit ffe189e

Please sign in to comment.