Skip to content

Commit

Permalink
feat(app): fix: use FeatureFlags.FF_CHAIN_SYNC instead of local globa…
Browse files Browse the repository at this point in the history
…l constant
  • Loading branch information
nutrina committed Aug 23, 2023
1 parent 77b5d40 commit 461ba97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import { Button } from "../components/Button";
import TagManager from "react-gtm-module";

const isLiveAlloScoreEnabled = process.env.NEXT_PUBLIC_FF_LIVE_ALLO_SCORE === "on";
const isOnChainSyncEnabled = FeatureFlags.FF_CHAIN_SYNC;

const success = "../../assets/check-icon2.svg";
const fail = "../assets/verification-failed-bright.svg";
Expand Down Expand Up @@ -330,7 +329,7 @@ export default function Dashboard() {
)}

<div className="ml-4 flex flex-col place-items-center gap-4 self-center md:flex-row">
{isOnChainSyncEnabled && <InitiateOnChainButton />}
{FeatureFlags.FF_CHAIN_SYNC && <InitiateOnChainButton />}
{passport ? (
<button
data-testid="button-passport-json-mobile"
Expand Down

0 comments on commit 461ba97

Please sign in to comment.