Add SBP type (#312)

This commit is contained in:
Ildar Galeev 2024-06-26 16:47:52 +07:00 committed by GitHub
parent 9e135c253f
commit 43a667f6a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export type DestinationBankCard = {
};
export type DestinationSBP = {
destinationType: 'DestinationSBP';
destinationType: 'DestinationSBP' | 'SBP';
phoneNumber: string;
bankName?: string;
recipientName?: string;

View File

@ -36,7 +36,7 @@ export function DestinationInfo({ destination }: DestinationInfoProps) {
/>
)}
{destination.destinationType === 'BankAccount' && <DestinationBankAccountInfo destination={destination} />}
{destination.destinationType === 'DestinationSBP' && (
{(destination.destinationType === 'DestinationSBP' || destination.destinationType === 'SBP') && (
<InfoItem
formatter={formatPhoneNumber}
icon={currency === 'RUB' ? <SBPIcon /> : null}