From 4e47fdad8bb6a6b2a7525455e4e0b186c325a2f8 Mon Sep 17 00:00:00 2001 From: Federico Mastrini Date: Mon, 18 Mar 2024 16:17:54 +0100 Subject: [PATCH] fix: [IOBP-596] Fix unexpected behavior in wallet onboarding Webview on Android devices (#5594) ## Short description This PR fixes a bug in the wallet onboarding flow, which was causing the webview to reopen after the flow completed. ## List of changes proposed in this pull request - Simplified types by leveraging the use of `io-ts` to ensure correct runtime type checking. - Refactored `useWalletOnboardingWebView` custom hook with simplified logics - Removed unnecessary components in the `WalletOnboardingFeedbackScreen` which now renders directly the onboarding outcome. ## How to test Using the [io-dev-api-server](https://github.com/pagopa/io-dev-api-server) or the UAT environment, navigate to the **Payments playground** within the **Profile** section of the app. Try to onboard new methods while checking that the Webivew does not reopens after a successful (or unsuccessful) onboarding. ## Preview