Skip to content

Commit

Permalink
chore: hide points FAQ if points url not provided (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Sep 26, 2024
1 parent e50d63e commit ac75129
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-staking",
"version": "0.3.1",
"version": "0.3.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
12 changes: 7 additions & 5 deletions src/app/components/FAQ/data/questions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { shouldDisplayTestingMsg } from "@/config";
import { shouldDisplayPoints, shouldDisplayTestingMsg } from "@/config";

export interface Question {
title: string;
Expand Down Expand Up @@ -94,11 +94,13 @@ export const questions = (
title: "Are hardware wallets supported?",
content: `<p>Keystone via QR code is the only hardware wallet supporting Bitcoin Staking. Using any other hardware wallet through any means (such as connection to a software/extension/mobile wallet) can lead to permanent inability to withdraw the stake.</p>`,
},
{
title: "What are the points?",
content: `<p>We use points to track staking activity. Points are not blockchain tokens. Points do not, and may never, convert to, accrue to, be used as a basis to calculate, or become tokens, other digital assets, or distributions thereof. Points are virtual calculations with no monetary value. Points do not constitute any currency or property of any type and are not redeemable, refundable, or transferable.</p>`,
},
];
if (shouldDisplayPoints()) {
questionList.push({
title: "What are the points for?",
content: `<p>We use points to track staking activity. Points are not blockchain tokens. Points do not, and may never, convert to, accrue to, be used as a basis to calculate, or become tokens, other digital assets, or distributions thereof. Points are virtual calculations with no monetary value. Points do not constitute any currency or property of any type and are not redeemable, refundable, or transferable.</p>`,
});
}
if (shouldDisplayTestingMsg()) {
questionList.push({
title: "What is the goal of this testnet?",
Expand Down

0 comments on commit ac75129

Please sign in to comment.