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>
This commit is contained in:
parent
866b854ee0
commit
180065129f
|
@ -163,9 +163,8 @@
|
||||||
(rf/dispatch
|
(rf/dispatch
|
||||||
[:open-modal :screen/settings.save-address]))
|
[:open-modal :screen/settings.save-address]))
|
||||||
[address ens-name? address-or-ens])]
|
[address ens-name? address-or-ens])]
|
||||||
(rn/use-mount (fn []
|
(rn/use-unmount #(rf/dispatch [:wallet/clean-scanned-address]))
|
||||||
(rf/dispatch [:wallet/clean-scanned-address])
|
(rn/use-mount #(rf/dispatch [:wallet/clear-address-to-save]))
|
||||||
(rf/dispatch [:wallet/clear-address-to-save])))
|
|
||||||
[quo/overlay {:type :shell}
|
[quo/overlay {:type :shell}
|
||||||
[floating-button-page/view
|
[floating-button-page/view
|
||||||
{:footer-container-padding 0
|
{:footer-container-padding 0
|
||||||
|
|
Loading…
Reference in New Issue