From 180065129fa22d271f7367b73834c5da10822f92 Mon Sep 17 00:00:00 2001 From: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> Date: Thu, 11 Jul 2024 20:01:55 +0530 Subject: [PATCH] fix(saved-addresses): clean QR scanned address (#20699) This commit cleans the scanned QR address/result on the unmount of the add new saved address flow. Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> --- .../wallet/saved_addresses/add_address_to_save/view.cljs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/status_im/contexts/settings/wallet/saved_addresses/add_address_to_save/view.cljs b/src/status_im/contexts/settings/wallet/saved_addresses/add_address_to_save/view.cljs index 9dcd733970..24e2ca4325 100644 --- a/src/status_im/contexts/settings/wallet/saved_addresses/add_address_to_save/view.cljs +++ b/src/status_im/contexts/settings/wallet/saved_addresses/add_address_to_save/view.cljs @@ -163,9 +163,8 @@ (rf/dispatch [:open-modal :screen/settings.save-address])) [address ens-name? address-or-ens])] - (rn/use-mount (fn [] - (rf/dispatch [:wallet/clean-scanned-address]) - (rf/dispatch [:wallet/clear-address-to-save]))) + (rn/use-unmount #(rf/dispatch [:wallet/clean-scanned-address])) + (rn/use-mount #(rf/dispatch [:wallet/clear-address-to-save])) [quo/overlay {:type :shell} [floating-button-page/view {:footer-container-padding 0