Skip to content

Commit 716e4eb

Browse files
bug: fix cart loading (#10617)
1 parent 6ec2e8d commit 716e4eb

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

app/grants/templates/grants/cart/extension/binance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<input v-model="preferredAmount" class="col-auto form-control w-25"
1717
style="max-width: 7rem;border-radius: 0;font-weight: 600;border-color: #A7A2B6;" />
1818
<div>
19-
<v-select v-if="grantsByTenant[0]" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
19+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
2020
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
2121
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle checkout-toggle">
2222
<template v-slot:option="option">

app/grants/templates/grants/cart/extension/harmony.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<input v-model="preferredAmount" class="col-auto form-control w-25"
2020
style="max-width: 7rem;border-radius: 0;font-weight: 600;border-color: #A7A2B6;" />
2121
<div>
22-
<v-select :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
22+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
2323
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
2424
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle checkout-toggle">
2525
<template v-slot:option="option">

app/grants/templates/grants/cart/extension/kusama.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<input v-model="preferredAmount" class="col-auto form-control w-25"
1717
style="max-width: 7rem;border-radius: 0;font-weight: 600;border-color: #A7A2B6;" />
1818
<div>
19-
<v-select :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
19+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
2020
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
2121
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle checkout-toggle">
2222
<template v-slot:option="option">

app/grants/templates/grants/cart/extension/polkadot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<input v-model="preferredAmount" class="col-auto form-control w-25"
1717
style="max-width: 7rem;border-radius: 5rem;font-weight: 600;border-color: #A7A2B6;" />
1818
<div>
19-
<v-select :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
19+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
2020
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
2121
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle">
2222
<template v-slot:option="option">

app/grants/templates/grants/cart/extension/rsk.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<input v-model="preferredAmount" class="col-auto form-control w-25"
1717
style="max-width: 7rem;border-radius: 5rem;font-weight: 600;border-color: #A7A2B6;" />
1818
<div>
19-
<v-select :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
19+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
2020
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
2121
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle">
2222
<template v-slot:option="option">

app/grants/templates/grants/cart/qr/celo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<input v-model="preferredAmount" class="col-auto form-control w-25"
1212
style="max-width: 7rem;border-radius: 5rem;font-weight: 600;border-color: #A7A2B6;" />
1313
<div>
14-
<v-select :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
14+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
1515
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
1616
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle">
1717
<template v-slot:option="option">

app/grants/templates/grants/cart/qr/zcash.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<input v-model="preferredAmount" class="col-auto form-control w-25"
1212
style="max-width: 7rem;border-radius: 0;font-weight: 600;border-color: #A7A2B6;" />
1313
<div>
14-
<v-select :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
14+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
1515
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
1616
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle checkout-toggle">
1717
<template v-slot:option="option">

app/grants/templates/grants/cart/qr/zil.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<input v-model="preferredAmount" class="col-auto form-control w-25"
1212
style="max-width: 7rem;border-radius: 5rem;font-weight: 600;border-color: #A7A2B6;" />
1313
<div>
14-
<v-select :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
14+
<v-select v-if="grantsByTenant.length" :clearable="false" :reduce="option => option.symbol" append-to-body :options="fetchTokens"
1515
placeholder="Select token" label="symbol" v-model="grantsByTenant[0].grant_donation_currency"
1616
@input="updateDonationCurrency(tabSelected)" class="rounded-toggle">
1717
<template v-slot:option="option">

0 commit comments

Comments
 (0)