From 5d550e58b363736f8bda37a8a3be2099451b6e00 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Sat, 15 Jan 2022 20:00:34 -0600 Subject: [PATCH] remove cluster env var and link explorer txs to correct cluster --- components/Notification.tsx | 6 ++++-- stores/useMangoStore.tsx | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/Notification.tsx b/components/Notification.tsx index 4da7f94a..cb6667f2 100644 --- a/components/Notification.tsx +++ b/components/Notification.tsx @@ -5,7 +5,7 @@ import { InformationCircleIcon, XCircleIcon, } from '@heroicons/react/outline' -import useMangoStore from '../stores/useMangoStore' +import useMangoStore, { CLUSTER } from '../stores/useMangoStore' import { Notification, notify } from '../utils/notifications' import { useTranslation } from 'next-i18next' import Loading from './Loading' @@ -143,7 +143,9 @@ const Notification = ({ notification }: { notification: Notification }) => { ) : null} {txid ? ( e.name === CLUSTER) export const WEBSOCKET_CONNECTION = new Connection( @@ -61,7 +61,6 @@ export const WEBSOCKET_CONNECTION = new Connection( 'processed' as Commitment ) -const DEFAULT_MANGO_GROUP_NAME = process.env.NEXT_PUBLIC_GROUP || 'mainnet.1' export const DEFAULT_MANGO_GROUP_CONFIG = Config.ids().getGroup( CLUSTER, DEFAULT_MANGO_GROUP_NAME