Skip to content

Commit

Permalink
Conclude the first testing phase of the OASIS 2 trial
Browse files Browse the repository at this point in the history
  • Loading branch information
danimoh committed Nov 11, 2022
1 parent 7a2e934 commit 6f66ff0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/modals/BuyOptionsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
<div class="flex-grow"></div>
<CaretRightIcon/>
</footer>
<footer v-else-if="isOasisUnderMaintenance && !isInOasis2Trial" class="flex-row">
<footer v-else-if="isOasisUnderMaintenance && (!isInOasis2Trial || isOasis2TrialPaused)"
class="flex-row">
<MaintenanceIcon/>
{{ $t('Currently under maintenance') }}
<div class="flex-grow"></div>
Expand Down Expand Up @@ -235,11 +236,12 @@ export default defineComponent({
const isInOasis2Trial = computed(
() => trials.value.includes(Trial.OASIS2) || trials.value.includes(Trial.TEN31Pass),
);
const isOasis2TrialPaused = true;
const isOasisAvailable = computed(() => {
if (!Config.fastspot.enabled) return false;
if (!canUseSwaps.value) return false;
if (Config.oasis.underMaintenance && !isInOasis2Trial.value) return false;
if (Config.oasis.underMaintenance && (!isInOasis2Trial.value || isOasis2TrialPaused)) return false;
if (Config.environment === ENV_TEST) return true;
return !country.value || SEPA_COUNTRY_CODES.includes(country.value.code);
Expand Down Expand Up @@ -278,6 +280,7 @@ export default defineComponent({
isOasisAvailable,
isOasisUnderMaintenance: Config.oasis.underMaintenance,
isInOasis2Trial,
isOasis2TrialPaused,
isCreditCardAvailable,
isMoonpayAvailable,
isSimplexAvailable,
Expand Down

0 comments on commit 6f66ff0

Please sign in to comment.