diff --git a/app/components/GenericPlatform.tsx b/app/components/GenericPlatform.tsx index 2855280774..9bfbfb58d2 100644 --- a/app/components/GenericPlatform.tsx +++ b/app/components/GenericPlatform.tsx @@ -403,8 +403,8 @@ export const GenericPlatform = ({ }; const isReverifying = useMemo( - () => verificationState.loading && verificationState.possiblePlatforms.includes(platform.platformId), - [verificationState.loading, verificationState.possiblePlatforms, platform.platformId] + () => verificationState.loading && platform.isEVM, + [verificationState.loading, platform.isEVM] ); const buttonText = useMemo(() => { diff --git a/app/context/userState.tsx b/app/context/userState.tsx index fdbc8b4cdf..3435e29bdb 100644 --- a/app/context/userState.tsx +++ b/app/context/userState.tsx @@ -19,7 +19,6 @@ export const userWarningAtom = atom(undefined); export interface UserVerification { loading: boolean; success: boolean; - possiblePlatforms: string[]; error?: string; } @@ -27,7 +26,6 @@ export const userVerificationAtom = atom({ loading: false, success: false, error: undefined, - possiblePlatforms: [], }); export const mutableUserVerificationAtom = atom( diff --git a/app/hooks/useOneClickVerification.tsx b/app/hooks/useOneClickVerification.tsx index ca92877686..380d4ff2d7 100644 --- a/app/hooks/useOneClickVerification.tsx +++ b/app/hooks/useOneClickVerification.tsx @@ -45,7 +45,6 @@ export const useOneClickVerification = () => { setUserVerificationState({ ...verificationState, loading: true, - possiblePlatforms: platformTypes, }); const validatedProviderIds = possiblePlatforms .map((platform) => @@ -85,7 +84,6 @@ export const useOneClickVerification = () => { ...verificationState, loading: false, success: true, - possiblePlatforms: [], }); toast({ duration: 9000, @@ -105,7 +103,6 @@ export const useOneClickVerification = () => { ...verificationState, loading: false, error: String(error), - possiblePlatforms: [], }); datadogLogs.logger.error("Error when attempting on click verification", { error: String(error) }); }