Skip to content

Commit

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

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

0 comments on commit c710ed9

Please sign in to comment.