From 43a667f6a578010fafec674a8779024bbb03bf53 Mon Sep 17 00:00:00 2001 From: Ildar Galeev Date: Wed, 26 Jun 2024 16:47:52 +0700 Subject: [PATCH] Add SBP type (#312) --- src/common/backend/p2p/types.ts | 2 +- .../ApiExtensionView/Destinations/DestinationInfo.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/backend/p2p/types.ts b/src/common/backend/p2p/types.ts index 4fcde776..1e82a1a5 100644 --- a/src/common/backend/p2p/types.ts +++ b/src/common/backend/p2p/types.ts @@ -11,7 +11,7 @@ export type DestinationBankCard = { }; export type DestinationSBP = { - destinationType: 'DestinationSBP'; + destinationType: 'DestinationSBP' | 'SBP'; phoneNumber: string; bankName?: string; recipientName?: string; diff --git a/src/components/ViewContainer/ApiExtensionView/Destinations/DestinationInfo.tsx b/src/components/ViewContainer/ApiExtensionView/Destinations/DestinationInfo.tsx index 52e94ef7..db56a14f 100644 --- a/src/components/ViewContainer/ApiExtensionView/Destinations/DestinationInfo.tsx +++ b/src/components/ViewContainer/ApiExtensionView/Destinations/DestinationInfo.tsx @@ -36,7 +36,7 @@ export function DestinationInfo({ destination }: DestinationInfoProps) { /> )} {destination.destinationType === 'BankAccount' && } - {destination.destinationType === 'DestinationSBP' && ( + {(destination.destinationType === 'DestinationSBP' || destination.destinationType === 'SBP') && ( : null}