diff --git a/src/components/Componentes/question-answer-storage.tsx b/src/components/Componentes/question-answer-storage.tsx index c7ea0f3..83d63de 100644 --- a/src/components/Componentes/question-answer-storage.tsx +++ b/src/components/Componentes/question-answer-storage.tsx @@ -478,12 +478,19 @@ export function QuestionAnswersProvider({ return; } - const fullPayload = createPayload(answersRef.current, questionsRef.current, backendFieldsRef.current); - const nextDirtyKey = fullPayload.fields.find((field) => dirtyKeysRef.current.has(field.key))?.key; + const fullPayload = createPayload( + answersRef.current, + questionsRef.current, + backendFieldsRef.current, + ); + const nextDirtyKey = fullPayload.fields.find((field) => + dirtyKeysRef.current.has(field.key), + )?.key; const payload = { ...fullPayload, - fields: nextDirtyKey ? fullPayload.fields.filter((field) => field.key === nextDirtyKey) : [], - version: schemaVersionRef.current, + fields: nextDirtyKey + ? fullPayload.fields.filter((field) => field.key === nextDirtyKey) + : [], }; const revision = answersRevisionRef.current; diff --git a/src/components/Componentes/token-switcher.tsx b/src/components/Componentes/token-switcher.tsx index d81a6b2..f8ea2bb 100644 --- a/src/components/Componentes/token-switcher.tsx +++ b/src/components/Componentes/token-switcher.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useState } from "react"; +import { IoClose, IoKeyOutline, IoTrashOutline } from "react-icons/io5"; import { MdOutlineSwitchAccount } from "react-icons/md"; import { IoClose, IoKeyOutline, IoTrashOutline } from "react-icons/io5"; import { getClientCookie, setClientCookie } from "@/lib/cookies";