Skip to content

Commit

Permalink
chore: Pass reciept to submit vote button (#3675)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller authored Jul 11, 2023
1 parent 853acbe commit f9ef1d4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions src/components/contextual/pages/vebal/LMVoting/GaugeVoteModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -394,21 +394,6 @@ onMounted(() => {
</li>
</ul>
</div>
<BalAlert
v-if="voteWarning"
type="warning"
:title="voteWarning.title"
:description="voteWarning.description"
class="mb-4 w-full rounded"
/>
<BalAlert
v-if="voteError"
type="error"
:title="voteError.title"
:description="voteError.description"
block
class="mt-2 mb-4"
/>

<div
class="flex justify-between items-center p-2 mb-4 rounded-lg border dark:border-gray-800"
Expand Down Expand Up @@ -473,9 +458,26 @@ onMounted(() => {
</div>
</template>

<BalAlert
v-if="voteWarning"
type="warning"
:title="voteWarning.title"
:description="voteWarning.description"
class="my-2 w-full rounded"
/>
<BalAlert
v-if="voteError"
type="error"
:title="voteError.title"
:description="voteError.description"
block
class="mt-2 mb-4"
/>

<SubmitVoteBtn
:disabled="voteButtonDisabled"
:loading="transactionInProgress"
:receipt="voteState.receipt.value"
class="mt-4"
:loadingLabel="
voteState.state.value === State.TRANSACTION_INITIALIZED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { TransactionReceipt } from '@ethersproject/abstract-provider';
type Props = {
disabled: boolean;
loading: boolean;
receipt?: TransactionReceipt;
receipt?: TransactionReceipt | null;
};
/**
Expand Down

1 comment on commit f9ef1d4

@vercel
Copy link

@vercel vercel bot commented on f9ef1d4 Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.