Skip to content

Commit

Permalink
bug: address was not validated after assets switch (#475)
Browse files Browse the repository at this point in the history
closes #474
  • Loading branch information
dni committed Feb 12, 2024
1 parent f7d1bfb commit 8cdca78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AddressInput = () => {
const { t } = useGlobalContext();
const {
asset,
assetReceive,
reverse,
sendAmountValid,
onchainAddress,
Expand Down Expand Up @@ -44,7 +45,7 @@ const AddressInput = () => {
};

createEffect(
on([sendAmountValid, onchainAddress], () => {
on([sendAmountValid, onchainAddress, assetReceive], () => {
if (reverse() && asset() !== RBTC) {
validateAddress(inputRef);
}
Expand Down

0 comments on commit 8cdca78

Please sign in to comment.