From f4f88944ca31fc9d4f4f9efcac2263f4430e98e8 Mon Sep 17 00:00:00 2001 From: Julien Coulaud Date: Mon, 7 Oct 2024 22:48:47 +0100 Subject: [PATCH] fix: fix wording --- src/app/components/StrategyForm/BuyStrategyStep.tsx | 3 +-- src/app/components/StrategyForm/ConditionModal.tsx | 4 ++-- src/app/components/StrategyForm/SettingsStrategyStep.tsx | 4 ++-- src/app/components/StrategyForm/strategySchema.ts | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app/components/StrategyForm/BuyStrategyStep.tsx b/src/app/components/StrategyForm/BuyStrategyStep.tsx index 9a23e79..9a788e7 100644 --- a/src/app/components/StrategyForm/BuyStrategyStep.tsx +++ b/src/app/components/StrategyForm/BuyStrategyStep.tsx @@ -85,8 +85,7 @@ export const BuyStrategyStep: React.FC = ({ onNext, onPrev ( control={control} render={({ field }) => ( field.onChange(e.target.checked)} /> @@ -250,7 +250,7 @@ function getConditionLabel(type: BuyCondition['type']): string { case 'age': return 'Age'; case 'blacklist': - return 'Blacklist'; + return 'Scam Prevention'; } } diff --git a/src/app/components/StrategyForm/SettingsStrategyStep.tsx b/src/app/components/StrategyForm/SettingsStrategyStep.tsx index a42ac13..97789c7 100644 --- a/src/app/components/StrategyForm/SettingsStrategyStep.tsx +++ b/src/app/components/StrategyForm/SettingsStrategyStep.tsx @@ -46,14 +46,14 @@ export const SettingsStrategyStep: React.FC<{ onNext: () => void }> = memo(({ on control={control} render={({ field }) => ( field.onChange(value)} error={ errors.maxBetAmount?.message || (!isMaxBetAmountValid - ? `Max bet amount exceeds your current balance of $${balance}` + ? `Max bet amount exceeds your current balance of ${balance} TON` : undefined) } placeholder='Enter the maximum bet amount' diff --git a/src/app/components/StrategyForm/strategySchema.ts b/src/app/components/StrategyForm/strategySchema.ts index aefb4b7..f10d709 100644 --- a/src/app/components/StrategyForm/strategySchema.ts +++ b/src/app/components/StrategyForm/strategySchema.ts @@ -81,7 +81,7 @@ export const strategySchema = z if (data.buy && data.buy.action.amount > data.maxBetAmount) { ctx.addIssue({ code: z.ZodIssueCode.custom, - message: `Buy amount cannot exceed the maximum bet amount of $${data.maxBetAmount}`, + message: `Buy amount cannot exceed the maximum bet amount of ${data.maxBetAmount} TON`, path: ['buy', 'action', 'amount'], }); }