Skip to content

Commit

Permalink
Disable buying with EUR
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Dec 29, 2020
1 parent 7d47c8e commit 9ed44db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/layouts/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ import { Portal } from '@linusborg/vue-simple-portal';
import MenuIcon from '../icons/MenuIcon.vue';
import CrossCloseButton from '../CrossCloseButton.vue';
import { useSettingsStore, ColorMode, Trial } from '../../stores/Settings';
import { useSettingsStore, ColorMode /* , Trial */ } from '../../stores/Settings';
import { FiatCurrency, FIAT_CURRENCY_DENYLIST } from '../../lib/Constants';
import { useFiatStore } from '../../stores/Fiat';
import { addVestingContract } from '../../hub';
Expand Down Expand Up @@ -297,8 +297,9 @@ export default defineComponent({
}
switch (hash) {
case '301bc5e02f0cf97c5efd61c78c3cfe6ee443cdfd4d17703e7515dccbcc618c3c':
settings.enableTrial(Trial.BUY_WITH_EURO); break;
case 'nope': break;
// case '301bc5e02f0cf97c5efd61c78c3cfe6ee443cdfd4d17703e7515dccbcc618c3c':
// settings.enableTrial(Trial.BUY_WITH_EURO); break;
default: el.value = 'Nope, no cookie for you'; return;
}
Expand Down
9 changes: 7 additions & 2 deletions src/components/modals/BuyCryptoModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -415,14 +415,14 @@ export default defineComponent({
},
});
const canSign = computed(() =>
const canSign = false; /* computed(() =>
fiatAmount.value
&& !estimateError.value && !swapError.value
&& estimate.value
&& userBank.value
&& limits.value
&& !fetchingEstimate.value,
);
); */
onMounted(() => {
initFastspotApi(Config.fastspot.apiEndpoint, Config.fastspot.apiKey);
Expand Down Expand Up @@ -778,6 +778,11 @@ export default defineComponent({
}
async function sign() {
alert('Disabled, for now.'); // eslint-disable-line no-alert
return false;
}
async function dummy() { // eslint-disable-line @typescript-eslint/no-unused-vars
// currentlySigning.value = true;
// eslint-disable-next-line no-async-promise-executor
Expand Down

0 comments on commit 9ed44db

Please sign in to comment.