Finished refactoring for Sellet flow.

This commit is contained in:
Filipe Soccol
2024-12-02 12:17:47 -03:00
parent c4dae86b5f
commit c90f468d3c
4 changed files with 28 additions and 19 deletions

View File

@@ -40,6 +40,7 @@ const selectedBank = ref<Bank | null>(null);
// Import the bank list
import bankList from "@/utils/files/isbpList.json";
import { Participant } from "@/utils/bbPay";
const filteredBanks = computed(() => {
if (!bankSearchQuery.value) return [];
@@ -70,7 +71,7 @@ const handleSubmit = (e: Event): void => {
const processedIdentification = postProcessKey(identification.value);
const data = {
const data: Participant = {
offer: offer.value,
fullName: fullName.value,
identification: processedIdentification,
@@ -78,7 +79,6 @@ const handleSubmit = (e: Event): void => {
accountType: accountType.value,
account: account.value,
branch: branch.value,
savingsVariation: savingsVariation.value || "",
};